@odigos/ui-kit 0.0.32 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/lib/components/dropdown/index.d.ts +1 -0
- package/lib/components/input/index.d.ts +1 -1
- package/lib/components/input-table/index.d.ts +3 -11
- package/lib/components/input-table/map-columns-to-fields/index.d.ts +15 -0
- package/lib/components/input-table/types.d.ts +15 -0
- package/lib/components.js +11 -11
- package/lib/constants/strings/index.d.ts +1 -0
- package/lib/constants.js +2 -2
- package/lib/containers/action-form/custom-fields/add-cluster-info.d.ts +1 -1
- package/lib/containers/action-form/custom-fields/delete-attributes.d.ts +1 -1
- package/lib/containers/action-form/custom-fields/error-sampler.d.ts +1 -1
- package/lib/containers/action-form/custom-fields/k8s-attributes.d.ts +1 -1
- package/lib/containers/action-form/custom-fields/latency-sampler.d.ts +1 -1
- package/lib/containers/action-form/custom-fields/pii-masking.d.ts +1 -1
- package/lib/containers/action-form/custom-fields/probabilistic-sampler.d.ts +1 -1
- package/lib/containers/action-form/custom-fields/rename-attributes.d.ts +1 -1
- package/lib/containers/action-form/custom-fields/service-name-sampler.d.ts +5 -0
- package/lib/containers/action-form/custom-fields/span-attribute-sampler.d.ts +5 -0
- package/lib/containers/data-stream-drawer/index.d.ts +1 -1
- package/lib/containers/data-stream-form/index.d.ts +1 -0
- package/lib/containers/destination-selection-form/destination-list/index.d.ts +2 -0
- package/lib/containers/instrumentation-rule-drawer/build-card.d.ts +1 -1
- package/lib/containers/setup-summary/index.d.ts +2 -0
- package/lib/containers.js +379 -189
- package/lib/functions/get-action-icon/index.d.ts +2 -2
- package/lib/functions/get-yaml-fields-for-destination/index.d.ts +2 -0
- package/lib/functions/index.d.ts +4 -0
- package/lib/functions/is-legal-k8s-label/index.d.ts +1 -0
- package/lib/functions/map-destination-fields-for-display/index.d.ts +6 -0
- package/lib/functions/numbers-only/index.d.ts +1 -0
- package/lib/functions.js +8 -8
- package/lib/hooks.js +6 -6
- package/lib/icons.js +7 -7
- package/lib/{index-DR5ryS5d.js → index--RecCPGA.js} +1 -1
- package/lib/{index-cG2lNgzz.js → index-BBjwRlta.js} +41 -6
- package/lib/{index-B3j_QWzh.js → index-BWZT-ipR.js} +1 -1
- package/lib/{index-BxckQJom.js → index-BZq0yNL-.js} +90 -45
- package/lib/{index-DuSmjoDs.js → index-Bd8ZAEvq.js} +1 -1
- package/lib/{index-DAbcw-wM.js → index-CIKkezVt.js} +1 -1
- package/lib/{index-C7YDojNh.js → index-ChYtqgBW.js} +9 -3
- package/lib/{index-7-KCQK-x.js → index-CnZlllYu.js} +10 -1
- package/lib/{index-PfG5pvFK.js → index-Cq8NT9Hr.js} +1 -1
- package/lib/{index-ivnS3eWW.js → index-DJGe2YeC.js} +128 -111
- package/lib/{index-rbphz5kH.js → index-a_WA-82O.js} +2 -2
- package/lib/{index-B9cvsYnj.js → index-mOgS3e5E.js} +1 -0
- package/lib/{index-DeD-SIlN.js → index-ovjVbVQq.js} +5 -5
- package/lib/snippets.js +10 -10
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/actions/index.d.ts +137 -41
- package/lib/types/common/index.d.ts +4 -16
- package/lib/types.js +78 -20
- package/lib/{useSourceSelectionFormData-A5_zhn1C.js → useSourceSelectionFormData-DBNf1uEe.js} +48 -26
- package/lib/{useTransition-9tDdAS9s.js → useTransition-dZ92VxT2.js} +1 -1
- package/package.json +12 -12
- package/lib/{index-BZS1ijMm.js → index-BV85P9UP.js} +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.34](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.33...ui-kit-v0.0.34) (2025-05-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add actions - ServiceNameSampler & SpanAttributeSampler ([#139](https://github.com/odigos-io/ui-kit/issues/139)) ([3dea0d2](https://github.com/odigos-io/ui-kit/commit/3dea0d2bba6cda3a8f870b52ee506e934bca35a6))
|
|
9
|
+
|
|
10
|
+
## [0.0.33](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.32...ui-kit-v0.0.33) (2025-05-27)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* Data Stream bugs ([#140](https://github.com/odigos-io/ui-kit/issues/140)) ([1af6a2f](https://github.com/odigos-io/ui-kit/commit/1af6a2f66720aca790d6179a3df47585362884c9))
|
|
16
|
+
|
|
3
17
|
## [0.0.32](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.31...ui-kit-v0.0.32) (2025-05-25)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
type Row
|
|
3
|
-
[key: string]: any;
|
|
4
|
-
};
|
|
2
|
+
import type { Column, Row } from './types';
|
|
5
3
|
interface InputTableProps {
|
|
6
|
-
columns:
|
|
7
|
-
title: string;
|
|
8
|
-
keyName: string;
|
|
9
|
-
type?: 'number';
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
tooltip?: string;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
}[];
|
|
4
|
+
columns: Column[];
|
|
14
5
|
initialValues?: Row[];
|
|
15
6
|
value?: Row[];
|
|
16
7
|
onChange?: (values: Row[]) => void;
|
|
17
8
|
errorMessage?: string;
|
|
9
|
+
limitFieldsPerRow?: number;
|
|
18
10
|
}
|
|
19
11
|
declare const InputTable: FC<InputTableProps>;
|
|
20
12
|
export { InputTable, type InputTableProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSProperties, type FC } from 'react';
|
|
2
|
+
import type { Column, Row } from '../types';
|
|
3
|
+
interface ColumnsToFieldsProps {
|
|
4
|
+
col: Column;
|
|
5
|
+
colIdx: number;
|
|
6
|
+
row: Row;
|
|
7
|
+
rowIdx: number;
|
|
8
|
+
rowsLength: number;
|
|
9
|
+
maxWidth: CSSProperties['maxWidth'];
|
|
10
|
+
handleChange: (key: string, val: string | number, idx: number) => void;
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
limitFieldsPerRow?: number;
|
|
13
|
+
}
|
|
14
|
+
declare const ColumnsToFields: FC<ColumnsToFieldsProps>;
|
|
15
|
+
export { ColumnsToFields, type ColumnsToFieldsProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DropdownOption } from '../dropdown';
|
|
2
|
+
export interface Row {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}
|
|
5
|
+
export interface Column {
|
|
6
|
+
keyName: string;
|
|
7
|
+
title: string;
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
type?: 'number';
|
|
12
|
+
componentType?: 'dropdown';
|
|
13
|
+
options?: DropdownOption[];
|
|
14
|
+
renderCondition?: (row: Row) => boolean;
|
|
15
|
+
}
|
package/lib/components.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { B as Button } from './index-
|
|
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-
|
|
3
|
-
export { C as CancelWarning, D as DeleteWarning } from './index-
|
|
1
|
+
import { B as Button } from './index-BZq0yNL-.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-BZq0yNL-.js';
|
|
3
|
+
export { C as CancelWarning, D as DeleteWarning } from './index-a_WA-82O.js';
|
|
4
4
|
import React, { Component, createElement, createContext } from 'react';
|
|
5
|
-
import { T as Theme } from './index-
|
|
6
|
-
import 'styled-components';
|
|
7
|
-
import './index-DAbcw-wM.js';
|
|
5
|
+
import { T as Theme } from './index-DJGe2YeC.js';
|
|
8
6
|
import './types.js';
|
|
9
|
-
import './index-
|
|
10
|
-
import './index-
|
|
11
|
-
import '
|
|
12
|
-
import './index-
|
|
13
|
-
import './
|
|
7
|
+
import './index-CIKkezVt.js';
|
|
8
|
+
import './index-ChYtqgBW.js';
|
|
9
|
+
import 'styled-components';
|
|
10
|
+
import './index-Bd8ZAEvq.js';
|
|
11
|
+
import './index-BV85P9UP.js';
|
|
12
|
+
import './index-mOgS3e5E.js';
|
|
13
|
+
import './useTransition-dZ92VxT2.js';
|
|
14
14
|
import 'react-dom';
|
|
15
15
|
|
|
16
16
|
const ErrorBoundaryContext = createContext(null);
|
package/lib/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as ACTION_OPTIONS, I as INSTRUMENTATION_RULE_OPTIONS, M as MONITORS_OPTIONS } from './index-
|
|
1
|
+
export { A as ACTION_OPTIONS, I as INSTRUMENTATION_RULE_OPTIONS, M as MONITORS_OPTIONS } from './index-DJGe2YeC.js';
|
|
2
2
|
export { D as DESTINATION_CATEGORIES } from './index-Dqief9td.js';
|
|
3
|
-
export { B as BUTTON_TEXTS, D as DEFAULT_DATA_STREAM_NAME, a as DISPLAY_TITLES, F as FORM_ALERTS } from './index-
|
|
3
|
+
export { B as BUTTON_TEXTS, D as DEFAULT_DATA_STREAM_NAME, a as DISPLAY_TITLES, F as FORM_ALERTS } from './index-mOgS3e5E.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './types.js';
|
|
6
6
|
import 'styled-components';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type ActionFormData, type CustomFieldProps } from '@/types';
|
|
3
3
|
type AddClusterInfoProps = CustomFieldProps<ActionFormData>;
|
|
4
4
|
declare const AddClusterInfo: FC<AddClusterInfoProps>;
|
|
5
5
|
export { AddClusterInfo, type AddClusterInfoProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type ActionFormData, type CustomFieldProps } from '@/types';
|
|
3
3
|
type DeleteAttributesProps = CustomFieldProps<ActionFormData>;
|
|
4
4
|
declare const DeleteAttributes: FC<DeleteAttributesProps>;
|
|
5
5
|
export { DeleteAttributes, type DeleteAttributesProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type ActionFormData, type CustomFieldProps } from '@/types';
|
|
3
3
|
type ErrorSamplerProps = CustomFieldProps<ActionFormData>;
|
|
4
4
|
declare const ErrorSampler: FC<ErrorSamplerProps>;
|
|
5
5
|
export { ErrorSampler, type ErrorSamplerProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type ActionFormData, type CustomFieldProps } from '@/types';
|
|
3
3
|
type K8sAttributesProps = CustomFieldProps<ActionFormData>;
|
|
4
4
|
declare const K8sAttributes: FC<K8sAttributesProps>;
|
|
5
5
|
export { K8sAttributes, type K8sAttributesProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type ActionFormData, type CustomFieldProps } from '@/types';
|
|
3
3
|
type LatencySamplerProps = CustomFieldProps<ActionFormData>;
|
|
4
4
|
declare const LatencySampler: FC<LatencySamplerProps>;
|
|
5
5
|
export { LatencySampler, type LatencySamplerProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type ActionFormData, type CustomFieldProps } from '@/types';
|
|
3
3
|
type PiiMaskingProps = CustomFieldProps<ActionFormData>;
|
|
4
4
|
declare const PiiMasking: FC<PiiMaskingProps>;
|
|
5
5
|
export { PiiMasking, type PiiMaskingProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type ActionFormData, type CustomFieldProps } from '@/types';
|
|
3
3
|
type ProbabilisticSamplerProps = CustomFieldProps<ActionFormData>;
|
|
4
4
|
declare const ProbabilisticSampler: FC<ProbabilisticSamplerProps>;
|
|
5
5
|
export { ProbabilisticSampler, type ProbabilisticSamplerProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type ActionFormData, type CustomFieldProps } from '@/types';
|
|
3
3
|
type RenameAttributesProps = CustomFieldProps<ActionFormData>;
|
|
4
4
|
declare const RenameAttributes: FC<RenameAttributesProps>;
|
|
5
5
|
export { RenameAttributes, type RenameAttributesProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type ActionFormData, type CustomFieldProps } from '@/types';
|
|
3
|
+
type ServiceNameSamplerProps = CustomFieldProps<ActionFormData>;
|
|
4
|
+
declare const ServiceNameSampler: FC<ServiceNameSamplerProps>;
|
|
5
|
+
export { ServiceNameSampler, type ServiceNameSamplerProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type ActionFormData, type CustomFieldProps } from '@/types';
|
|
3
|
+
type SpanAttributeSamplerProps = CustomFieldProps<ActionFormData>;
|
|
4
|
+
declare const SpanAttributeSampler: FC<SpanAttributeSamplerProps>;
|
|
5
|
+
export { SpanAttributeSampler, type SpanAttributeSamplerProps };
|
|
@@ -3,6 +3,7 @@ import type { DataStream } from '@/types';
|
|
|
3
3
|
interface DataStreamFormProps {
|
|
4
4
|
formData: DataStream;
|
|
5
5
|
handleFormChange: (key: keyof DataStream, val: any) => void;
|
|
6
|
+
formErrors: Partial<Record<'name', string>>;
|
|
6
7
|
}
|
|
7
8
|
declare const DataStreamForm: FC<DataStreamFormProps>;
|
|
8
9
|
export { DataStreamForm, type DataStreamFormProps };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
+
import type { DestinationCategories } from '@/types';
|
|
2
3
|
interface SetupSummaryProps {
|
|
3
4
|
onEditStream: () => void;
|
|
4
5
|
onEditSources: () => void;
|
|
5
6
|
onEditDestinations: () => void;
|
|
7
|
+
categories: DestinationCategories;
|
|
6
8
|
}
|
|
7
9
|
declare const SetupSummary: FC<SetupSummaryProps>;
|
|
8
10
|
export { SetupSummary, type SetupSummaryProps };
|