@odigos/ui-kit 0.0.48 → 0.0.49
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 +8 -0
- package/eslint.config.mjs +16 -2
- package/lib/components/data-card/data-card-fields/index.d.ts +2 -1
- package/lib/components/error-boundary/error-boundary.stories.d.ts +3 -1
- package/lib/components/error-boundary/index.d.ts +1 -2
- package/lib/components/field-error/field-error.stories.d.ts +3 -1
- package/lib/components/field-error/index.d.ts +1 -2
- package/lib/components/segment/index.d.ts +8 -7
- package/lib/components/styled.d.ts +5 -1
- package/lib/components.js +6 -6
- package/lib/containers/await-pipeline/await-pipeline.stories.d.ts +1 -1
- package/lib/containers/await-pipeline/index.d.ts +1 -2
- package/lib/containers/data-flow-actions-menu/add-entity/index.d.ts +2 -3
- package/lib/containers/data-flow-actions-menu/filters/index.d.ts +2 -3
- package/lib/containers/data-flow-actions-menu/search/index.d.ts +2 -3
- package/lib/containers/data-stream-modal/data-stream-modal.stories.d.ts +2 -2
- package/lib/containers/data-stream-modal/index.d.ts +1 -2
- package/lib/containers/index.d.ts +1 -0
- package/lib/containers/notification-manager/index.d.ts +1 -2
- package/lib/containers/notification-manager/notification-manager.stories.d.ts +1 -1
- package/lib/containers/service-map/helpers/build-edges.d.ts +10 -0
- package/lib/containers/service-map/helpers/build-map-nodes.d.ts +11 -0
- package/lib/containers/service-map/index.d.ts +8 -0
- package/lib/containers/service-map/service-map.stories.d.ts +9 -0
- package/lib/containers/slack-invite/index.d.ts +1 -2
- package/lib/containers/slack-invite/slack-invite.stories.d.ts +1 -1
- package/lib/containers/toast-list/index.d.ts +1 -2
- package/lib/containers/toast-list/toast-list.stories.d.ts +1 -1
- package/lib/containers/toggle-dark-mode/index.d.ts +1 -2
- package/lib/containers/toggle-dark-mode/toggle-dark-mode.stories.d.ts +1 -1
- package/lib/containers.js +381 -12479
- package/lib/functions/clean-object-empty-strings-values/index.d.ts +2 -1
- package/lib/functions/compare-condition/index.d.ts +1 -1
- package/lib/functions/flatten-object-keys/index.d.ts +2 -1
- package/lib/functions/get-entity-id/index.d.ts +2 -2
- package/lib/functions/get-entity-label/index.d.ts +2 -2
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions/map-destination-fields-for-display/index.d.ts +1 -1
- package/lib/functions/remove-empty-values-from-object/index.d.ts +2 -1
- package/lib/functions/safe-json-parse/index.d.ts +2 -1
- package/lib/functions/safe-json-stringify/index.d.ts +2 -1
- package/lib/functions/stringify-non-string-values/index.d.ts +2 -1
- package/lib/functions.js +32 -6
- package/lib/hooks/useGenericForm.d.ts +2 -1
- package/lib/hooks/useInstrumentationRuleFormData.d.ts +1 -4
- package/lib/hooks/useSessionStorage.d.ts +2 -2
- package/lib/hooks/useSourceFormData.d.ts +1 -4
- package/lib/hooks.js +3 -3
- package/lib/icons/common/index.d.ts +1 -0
- package/lib/icons/common/user-icon/index.d.ts +2 -0
- package/lib/icons/common/user-icon/user-icon.stories.d.ts +8 -0
- package/lib/icons.js +1 -1
- package/lib/{index-BV85P9UP.js → index-BnvrwbRB.js} +4 -0
- package/lib/{index-DXBePB-r.js → index-C1V7D2ey.js} +12724 -359
- package/lib/{index-BWIOWlkS.js → index-CeBxw8J4.js} +1 -1
- package/lib/{index-BIYXaOIt.js → index-CeDmxXUE.js} +9 -1
- package/lib/{index-DHHUJe_a.js → index-DOU0EdZP.js} +1 -1
- package/lib/{index-CrXEzEGw.js → index-DsEoqSQn.js} +1 -1
- package/lib/{index-D_SG1Qp0.js → index-w9lkC6fb.js} +7 -5
- package/lib/mock-data/index.d.ts +1 -0
- package/lib/mock-data/service-map/index.d.ts +2 -0
- package/lib/snippets/index.d.ts +1 -0
- package/lib/{containers/data-flow → snippets/react-flow}/edges/labeled-edge.d.ts +4 -4
- package/lib/{containers/data-flow → snippets/react-flow}/flow.d.ts +2 -0
- package/lib/snippets/react-flow/index.d.ts +13 -0
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/add-node.d.ts +4 -4
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/base-node.d.ts +4 -4
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/edged-node.d.ts +4 -4
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/frame-node.d.ts +4 -4
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/header-node.d.ts +4 -4
- package/lib/snippets/react-flow/nodes/map-item-node.d.ts +12 -0
- package/lib/snippets/react-flow/nodes/no-data-node.d.ts +9 -0
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/scroll-node.d.ts +4 -4
- package/lib/snippets/react-flow/nodes/skeleton-node.d.ts +8 -0
- package/lib/snippets.js +5 -5
- package/lib/types/common/index.d.ts +1 -0
- package/lib/types/data-flow/index.d.ts +3 -1
- package/lib/types/describe/index.d.ts +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/service-map/index.d.ts +10 -0
- package/lib/types.js +2 -0
- package/lib/{useSourceSelectionFormData-BP-O55O3.js → useSourceSelectionFormData-C5VMfWEf.js} +13 -48
- package/lib/{useTransition-DanOnTji.js → useTransition-mupXsbop.js} +43 -9
- package/package.json +3 -2
- package/lib/containers/data-flow/nodes/skeleton-node.d.ts +0 -8
- /package/lib/{containers/data-flow/helpers/get-main-container-language.d.ts → functions/get-main-container-language/index.d.ts} +0 -0
- /package/lib/{containers/data-flow/helpers → snippets/react-flow}/node-config.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.49](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.48...ui-kit-v0.0.49) (2025-07-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add ESLint workflow for pull requests ([#206](https://github.com/odigos-io/ui-kit/issues/206)) ([17e5036](https://github.com/odigos-io/ui-kit/commit/17e50361890a251748115326b0f3e63bda924b6d))
|
|
9
|
+
* service map ([#207](https://github.com/odigos-io/ui-kit/issues/207)) ([24637e0](https://github.com/odigos-io/ui-kit/commit/24637e01d75af8221b6fe20fde192ce55c072687))
|
|
10
|
+
|
|
3
11
|
## [0.0.48](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.47...ui-kit-v0.0.48) (2025-06-26)
|
|
4
12
|
|
|
5
13
|
|
package/eslint.config.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
|
|
2
|
-
import storybook from
|
|
2
|
+
import storybook from 'eslint-plugin-storybook';
|
|
3
3
|
|
|
4
4
|
import { dirname } from 'path';
|
|
5
5
|
import { fileURLToPath } from 'url';
|
|
@@ -15,6 +15,20 @@ const compat = new FlatCompat({
|
|
|
15
15
|
const extensions = compat.extends('next/core-web-vitals', 'next/typescript');
|
|
16
16
|
const config = compat.config({});
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
// Custom rule to allow unused variables that start with underscore
|
|
19
|
+
const customRules = {
|
|
20
|
+
rules: {
|
|
21
|
+
'@typescript-eslint/no-unused-vars': [
|
|
22
|
+
'error',
|
|
23
|
+
{
|
|
24
|
+
argsIgnorePattern: '^_',
|
|
25
|
+
varsIgnorePattern: '^_',
|
|
26
|
+
caughtErrorsIgnorePattern: '^_',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const eslintConfig = [...extensions, ...config, ...storybook.configs['flat/recommended'], customRules];
|
|
19
33
|
|
|
20
34
|
export default eslintConfig;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
+
import { AnyObj } from '@/types';
|
|
2
3
|
declare enum DataCardFieldTypes {
|
|
3
4
|
Code = "code",
|
|
4
5
|
Table = "table",
|
|
@@ -16,7 +17,7 @@ interface DataCardField {
|
|
|
16
17
|
type?: DataCardFieldTypes;
|
|
17
18
|
title?: string;
|
|
18
19
|
tooltip?: string;
|
|
19
|
-
value?: string |
|
|
20
|
+
value?: string | AnyObj;
|
|
20
21
|
callback?: (payload: any) => void | Promise<void>;
|
|
21
22
|
}
|
|
22
23
|
interface DataCardFieldsProps {
|
|
@@ -3,7 +3,9 @@ import type { StoryFn } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type ErrorBoundaryProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<{
|
|
7
|
+
children?: React.ReactNode | undefined;
|
|
8
|
+
}>;
|
|
7
9
|
};
|
|
8
10
|
export default _default;
|
|
9
11
|
export declare const Default: StoryFn<ErrorBoundaryProps>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type FC, type PropsWithChildren } from 'react';
|
|
2
|
-
|
|
3
|
-
}
|
|
2
|
+
type ErrorBoundaryProps = PropsWithChildren;
|
|
4
3
|
declare const ErrorBoundary: FC<ErrorBoundaryProps>;
|
|
5
4
|
export { ErrorBoundary, type ErrorBoundaryProps };
|
|
@@ -3,7 +3,9 @@ import type { StoryFn } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type FieldErrorProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<{
|
|
7
|
+
children?: React.ReactNode | undefined;
|
|
8
|
+
}>;
|
|
7
9
|
};
|
|
8
10
|
export default _default;
|
|
9
11
|
export declare const Default: StoryFn<FieldErrorProps>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type CSSProperties, type FC } from 'react';
|
|
2
2
|
import type { SVG } from '@/types';
|
|
3
3
|
type SelectedValue = any;
|
|
4
|
+
type Option = {
|
|
5
|
+
icon?: SVG;
|
|
6
|
+
label?: string;
|
|
7
|
+
value: SelectedValue;
|
|
8
|
+
selectedBgColor?: CSSProperties['backgroundColor'];
|
|
9
|
+
selectedTextColor?: CSSProperties['color'];
|
|
10
|
+
};
|
|
4
11
|
interface SegmentProps {
|
|
5
|
-
options:
|
|
6
|
-
icon?: SVG;
|
|
7
|
-
label?: string;
|
|
8
|
-
value: SelectedValue;
|
|
9
|
-
selectedBgColor?: CSSProperties['backgroundColor'];
|
|
10
|
-
selectedTextColor?: CSSProperties['color'];
|
|
11
|
-
}[];
|
|
12
|
+
options: Option[];
|
|
12
13
|
selected: SelectedValue;
|
|
13
14
|
setSelected: (value: SelectedValue) => void;
|
|
14
15
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type CSSProperties } from 'styled-components';
|
|
2
2
|
export declare const FlexRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
3
|
$gap?: number;
|
|
4
|
+
$alignItems?: CSSProperties["alignItems"];
|
|
5
|
+
$justifyContent?: CSSProperties["justifyContent"];
|
|
4
6
|
}>> & string;
|
|
5
7
|
export declare const FlexColumn: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
8
|
$gap?: number;
|
|
@@ -19,8 +21,10 @@ export declare const TableContainer: import("styled-components/dist/types").ISty
|
|
|
19
21
|
}, {
|
|
20
22
|
$maxWidth: CSSProperties["maxWidth"];
|
|
21
23
|
}>> & string;
|
|
22
|
-
export declare const TableTitleWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$gap"> & {
|
|
24
|
+
export declare const TableTitleWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$gap" | "$alignItems" | "$justifyContent"> & {
|
|
23
25
|
$gap?: number;
|
|
26
|
+
$alignItems?: CSSProperties["alignItems"];
|
|
27
|
+
$justifyContent?: CSSProperties["justifyContent"];
|
|
24
28
|
}, never>> & string;
|
|
25
29
|
export declare const TableWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
26
30
|
$maxHeight: CSSProperties["maxHeight"];
|
package/lib/components.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { C as CancelWarning, D as DeleteWarning } from './index-
|
|
1
|
+
import { d as Button } from './index-C1V7D2ey.js';
|
|
2
|
+
export { e as AutocompleteInput, f as Badge, ad as CenterThis, C as Checkbox, g as Code, h as ConditionDetails, D as DataCard, j as DataCardFieldTypes, i as DataCardFields, k as DataTab, l as Divider, m as DocsButton, o as Drawer, q as DrawerFooter, p as DrawerHeader, r as Dropdown, s as ExtendArrow, t as FadeLoader, u as FieldError, v as FieldLabel, ac as FlexColumn, ab as FlexRow, w as Header, I as IconButton, x as IconGroup, y as IconTitleBadge, z as IconWrapped, G as IconsNav, J as ImageControlled, K as Input, O as InputList, P as InputTable, Q as InteractiveTable, R as KeyValueInputsList, U as Modal, ag as ModalBody, V as MonitorsCheckboxes, W as MonitorsIcons, X as NavigationButtons, Y as NoDataFound, Z as NotificationNote, af as Overlay, _ as ScrollX, $ as SectionTitle, a0 as Segment, a1 as SelectionButton, a2 as SkeletonLoader, a3 as Status, a4 as Stepper, ah as TableContainer, ai as TableTitleWrap, aj as TableWrap, a5 as Text, a6 as TextArea, a7 as Toggle, T as ToggleCodeComponent, a8 as Tooltip, a9 as TraceLoader, ae as VerticalScroll, aa as WarningModal } from './index-C1V7D2ey.js';
|
|
3
|
+
export { C as CancelWarning, D as DeleteWarning } from './index-DOU0EdZP.js';
|
|
4
4
|
import React, { Component, createElement, createContext } from 'react';
|
|
5
5
|
import { T as Theme } from './index-Bw7RE2T2.js';
|
|
6
6
|
import './types.js';
|
|
7
7
|
import './index-CkTdd3MS.js';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-DsEoqSQn.js';
|
|
9
9
|
import 'styled-components';
|
|
10
10
|
import './index-DxR7e2Cq.js';
|
|
11
|
-
import './index-
|
|
12
|
-
import './useTransition-
|
|
11
|
+
import './index-BnvrwbRB.js';
|
|
12
|
+
import './useTransition-mupXsbop.js';
|
|
13
13
|
import 'react-dom';
|
|
14
14
|
|
|
15
15
|
const ErrorBoundaryContext = createContext(null);
|
|
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type AwaitPipelineProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<object>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryFn<AwaitPipelineProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
2
|
+
import type { StoryFn } from '@storybook/react-webpack5';
|
|
3
3
|
import { type DataStreamModalProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<object>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryFn<DataStreamModalProps>;
|
|
@@ -24,6 +24,7 @@ export * from './instrumentation-rule-table/index';
|
|
|
24
24
|
export * from './multi-source-control/index';
|
|
25
25
|
export * from './notification-manager/index';
|
|
26
26
|
export * from './overview-drawer/index';
|
|
27
|
+
export * from './service-map/index';
|
|
27
28
|
export * from './setup-summary/index';
|
|
28
29
|
export * from './side-nav/index';
|
|
29
30
|
export * from './slack-invite/index';
|
|
@@ -3,7 +3,7 @@ import { type StoryObj } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type NotificationManagerProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<object>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryObj<NotificationManagerProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
|
2
|
+
import { type Edge, type Node } from '@xyflow/react';
|
|
3
|
+
import { type ServiceMapSources } from '@/types';
|
|
4
|
+
interface Params {
|
|
5
|
+
theme: DefaultTheme;
|
|
6
|
+
nodes: Node[];
|
|
7
|
+
serviceMap: ServiceMapSources;
|
|
8
|
+
}
|
|
9
|
+
export declare const buildEdges: ({ theme, nodes, serviceMap }: Params) => Edge[];
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Node } from '@xyflow/react';
|
|
2
|
+
import { type Source, type ServiceMapSources } from '@/types';
|
|
3
|
+
interface Params {
|
|
4
|
+
sources: Source[];
|
|
5
|
+
sourcesLoading: boolean;
|
|
6
|
+
serviceMap: ServiceMapSources;
|
|
7
|
+
containerHeight: number;
|
|
8
|
+
containerWidth: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const buildMapNodes: ({ sources, serviceMap, containerHeight, containerWidth }: Params) => Node[];
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { type ServiceMapSources } from '@/types';
|
|
3
|
+
interface ServiceMapProps {
|
|
4
|
+
heightToRemove: CSSProperties['height'];
|
|
5
|
+
serviceMap: ServiceMapSources;
|
|
6
|
+
}
|
|
7
|
+
declare const ServiceMap: React.FC<ServiceMapProps>;
|
|
8
|
+
export { ServiceMap, type ServiceMapProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
3
|
+
import { type ServiceMapProps } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FC<ServiceMapProps>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryObj<ServiceMapProps>;
|
|
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type SlackInviteProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<object>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryFn<SlackInviteProps>;
|
|
@@ -3,7 +3,7 @@ import type { StoryObj } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type ToastListProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<object>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryObj<ToastListProps>;
|
|
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type ToggleDarkModeProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<object>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryFn<ToggleDarkModeProps>;
|