@odigos/ui-kit 0.0.118 → 0.0.120
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/chunks/{ui-components-41888152.js → ui-components-534fcd21.js} +235 -218
- package/lib/components/index.d.ts +1 -0
- package/lib/components/loading-text/index.d.ts +9 -0
- package/lib/components.js +1 -1
- package/lib/constants/strings/index.d.ts +2 -0
- package/lib/constants.js +1 -1
- package/lib/containers/data-flow/helpers/build-edges.d.ts +2 -1
- package/lib/containers/data-flow/helpers/build-other-nodes.d.ts +8 -0
- package/lib/containers/data-flow/helpers/build-source-nodes.d.ts +2 -1
- package/lib/containers/data-flow/helpers/get-node-positions.d.ts +2 -1
- package/lib/containers/source-drawer/build-card.d.ts +1 -1
- package/lib/containers/source-selection-form/index.d.ts +1 -2
- package/lib/containers/source-selection-form/source-list/index.d.ts +1 -1
- package/lib/containers.js +110 -107
- package/lib/functions.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useConnection.d.ts +4 -0
- package/lib/hooks.js +1 -1
- package/lib/icons.js +1 -1
- package/lib/snippets/react-flow/nodes/odi-logo-node.d.ts +5 -0
- package/lib/snippets.js +1 -1
- package/lib/store/useSelectedStore.d.ts +3 -1
- package/lib/store/useSetupStore.d.ts +2 -0
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +6 -0
- package/lib/types/data-flow/index.d.ts +2 -1
- package/lib/types.js +1 -1
- package/package.json +1 -1
|
@@ -31,6 +31,7 @@ export * from './input-list';
|
|
|
31
31
|
export * from './input-table';
|
|
32
32
|
export * from './interactive-table';
|
|
33
33
|
export * from './key-value-input-list';
|
|
34
|
+
export * from './loading-text';
|
|
34
35
|
export * from './modal';
|
|
35
36
|
export * from './monitors-checkboxes';
|
|
36
37
|
export * from './monitors-icons';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { type TextProps } from '../text';
|
|
3
|
+
interface LoadingTextProps extends TextProps {
|
|
4
|
+
children?: string;
|
|
5
|
+
textColor?: string;
|
|
6
|
+
stripColor?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const LoadingText: FC<LoadingTextProps>;
|
|
9
|
+
export { LoadingText, type LoadingTextProps };
|
package/lib/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{V as AutocompleteInput,ag as Badge,
|
|
1
|
+
export{V as AutocompleteInput,ag as Badge,aM as Button,t as CancelWarning,ad as CenterThis,C as Checkbox,cw as Code,G as ConditionDetails,H as DataCard,a as DataCardFieldTypes,b7 as DataCardFields,cx as DataFinger,b3 as DataTab,s as DeleteWarning,bv as DescribeRow,W as Divider,m as DocsButton,r as Drawer,cz as DrawerFooter,cy as DrawerHeader,aJ as Dropdown,cA as ErrorBoundary,aS as ExtendArrow,aZ as FadeLoader,b as FieldError,F as FieldLabel,L as FlexColumn,Z as FlexRow,cB as Header,aR as IconButton,bE as IconGroup,a9 as IconTitleBadge,a4 as IconWrapped,br as IconsNav,cC as ImageControlled,I as Input,h as InputList,e as InputTable,ac as InteractiveTable,g as KeyValueInputsList,bp as LoadingText,O as Modal,Q as ModalBody,M as MonitorsCheckboxes,a6 as MonitorsIcons,P as NavigationButtons,ae as NoDataFound,R as NotificationNote,cJ as Overlay,aD as Popup,bJ as PopupForm,bS as ScrollX,l as SectionTitle,S as Segment,aE as SelectionButton,cD as SkeletonLoader,Y as Status,b6 as Stepper,cE as TabList,a7 as TableContainer,a8 as TableTitleWrap,ab as TableWrap,bg as Tag,k as Text,n as TextArea,f as Toggle,bQ as ToggleCodeComponent,$ as Tooltip,af as TraceLoader,aF as VerticalScroll,cI as WarningModal,cF as getLinksFromText,cG as getStrongsFromText,cH as renderText}from"./chunks/ui-components-534fcd21.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1dea551d.js";import"styled-components";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
|
@@ -84,6 +84,8 @@ export declare const DISPLAY_TITLES: {
|
|
|
84
84
|
DESCRIBE_SOURCE: string;
|
|
85
85
|
DETECTED_CONTAINERS: string;
|
|
86
86
|
DETECTED_CONTAINERS_DESCRIPTION: string;
|
|
87
|
+
DETECTED_PROCESSES: string;
|
|
88
|
+
DETECTED_PROCESSES_DESCRIPTION: string;
|
|
87
89
|
CONTAINER_NAME: string;
|
|
88
90
|
FILTERED_COUNT_TOOLTIP: string;
|
|
89
91
|
SEARCH_NAMESPACES: string;
|
package/lib/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{y as ACTION_OPTIONS,B as BUTTON_TEXTS,
|
|
1
|
+
export{y as ACTION_OPTIONS,B as BUTTON_TEXTS,aQ as DEFAULT_DATA_STREAM_NAME,b4 as DESTINATION_CATEGORIES,aK as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,U as FORM_ALERTS,bj as INSTRUMENTATION_RULE_OPTIONS,ci as LANGUAGE_OPTIONS,aL as MONITORS_OPTIONS,aN as STORAGE_KEYS,cj as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-534fcd21.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1dea551d.js";import"styled-components";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
|
@@ -3,9 +3,10 @@ import { DefaultTheme } from 'styled-components';
|
|
|
3
3
|
import { type Metrics } from '@/types';
|
|
4
4
|
interface Params {
|
|
5
5
|
theme: DefaultTheme;
|
|
6
|
+
isVm: boolean;
|
|
6
7
|
nodes: Node[];
|
|
7
8
|
metrics?: Metrics;
|
|
8
9
|
containerHeight: number;
|
|
9
10
|
}
|
|
10
|
-
export declare const buildEdges: ({ theme, nodes, metrics, containerHeight }: Params) => Edge[];
|
|
11
|
+
export declare const buildEdges: ({ theme, isVm, nodes, metrics, containerHeight }: Params) => Edge[];
|
|
11
12
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Node } from '@xyflow/react';
|
|
2
|
+
import type { NodePositions } from './get-node-positions';
|
|
3
|
+
interface Params {
|
|
4
|
+
isVm: boolean;
|
|
5
|
+
positions: NodePositions;
|
|
6
|
+
}
|
|
7
|
+
export declare const buildOtherNodes: ({ isVm, positions }: Params) => Node[];
|
|
8
|
+
export {};
|
|
@@ -2,6 +2,7 @@ import type { Node } from '@xyflow/react';
|
|
|
2
2
|
import type { NodePositions } from './get-node-positions';
|
|
3
3
|
import { type Source } from '@/types';
|
|
4
4
|
interface Params {
|
|
5
|
+
isVm: boolean;
|
|
5
6
|
loading: boolean;
|
|
6
7
|
entities: Source[];
|
|
7
8
|
positions: NodePositions;
|
|
@@ -13,5 +14,5 @@ interface Params {
|
|
|
13
14
|
scrollTop: number;
|
|
14
15
|
}) => void;
|
|
15
16
|
}
|
|
16
|
-
export declare const buildSourceNodes: ({ loading, entities, positions, unfilteredCount, containerHeight, onScroll }: Params) => Node[];
|
|
17
|
+
export declare const buildSourceNodes: ({ isVm, loading, entities, positions, unfilteredCount, containerHeight, onScroll }: Params) => Node[];
|
|
17
18
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { EntityTypes } from '@/types';
|
|
2
2
|
interface Params {
|
|
3
|
+
isVm: boolean;
|
|
3
4
|
containerWidth: number;
|
|
4
5
|
}
|
|
5
6
|
export type NodePositions = Record<EntityTypes, {
|
|
6
7
|
x: number;
|
|
7
8
|
y: (idx?: number) => number;
|
|
8
9
|
}>;
|
|
9
|
-
export declare const getNodePositions: ({ containerWidth }: Params) => NodePositions;
|
|
10
|
+
export declare const getNodePositions: ({ isVm, containerWidth }: Params) => NodePositions;
|
|
10
11
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Source } from '@/types';
|
|
2
|
-
declare const buildCard: (source: Source) => import("../../components/data-card/data-card-fields").DataCardField[];
|
|
2
|
+
declare const buildCard: (source: Source, isVm: boolean) => import("../../components/data-card/data-card-fields").DataCardField[];
|
|
3
3
|
export { buildCard };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type FetchSingleNamespace } from '@/types';
|
|
3
|
-
import { type
|
|
3
|
+
import { type NamespaceSelectionFormData, type SourceSelectionFormData } from '@/store';
|
|
4
4
|
interface SourceSelectionFormProps {
|
|
5
5
|
isModal?: boolean;
|
|
6
6
|
fetchSingleNamespace: FetchSingleNamespace;
|
|
@@ -8,7 +8,6 @@ interface SourceSelectionFormProps {
|
|
|
8
8
|
}
|
|
9
9
|
interface SourceSelectionFormRef {
|
|
10
10
|
getFormValues: () => {
|
|
11
|
-
initial: AvailableSourcesByNamespace;
|
|
12
11
|
apps: SourceSelectionFormData;
|
|
13
12
|
futureApps: NamespaceSelectionFormData;
|
|
14
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type UseSourceSelectionFormData } from '@/hooks';
|
|
3
3
|
interface SourceListProps extends Partial<UseSourceSelectionFormData> {
|
|
4
4
|
isModal?: boolean;
|
|
5
5
|
withInstances?: boolean;
|