@odigos/ui-kit 0.0.189 → 0.0.191
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 +23 -0
- package/lib/chunks/index-BgT3kLZa.js +3 -0
- package/lib/chunks/ui-components-CCA7B7ry.js +2364 -0
- package/lib/chunks/vendor-C-kwkNJP.js +1 -0
- package/lib/components/_v2/drop-data/index.d.ts +5 -1
- package/lib/components/_v2/drop-down/index.d.ts +9 -0
- package/lib/components/_v2/field-message/index.d.ts +6 -0
- package/lib/components/_v2/field-title/index.d.ts +9 -0
- package/lib/components/_v2/index.d.ts +6 -0
- package/lib/components/_v2/input/index.d.ts +3 -1
- package/lib/components/_v2/input-list/index.d.ts +15 -0
- package/lib/components/_v2/input-table/dynamic-field/index.d.ts +13 -0
- package/lib/components/_v2/input-table/index.d.ts +16 -0
- package/lib/components/_v2/input-table/types.d.ts +15 -0
- package/lib/components/_v2/island/index.d.ts +2 -1
- package/lib/components/_v2/segment/index.d.ts +2 -0
- package/lib/components/_v2/textarea/index.d.ts +11 -0
- package/lib/components/_v2/toggle/index.d.ts +2 -1
- package/lib/components/styled.d.ts +7 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/strings/index.d.ts +1 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/add-rule-drawer/helpers.d.ts +7 -0
- package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +10 -0
- package/lib/containers/_v2/{central-connections/source-drawer → _drawers/add-source-drawer}/index.d.ts +3 -4
- package/lib/containers/_v2/{central-connections/source-drawer → _drawers/add-source-drawer}/namespaces-column/index.d.ts +3 -2
- package/lib/containers/_v2/{central-connections/source-drawer → _drawers/add-source-drawer}/workloads-column/index.d.ts +3 -2
- package/lib/containers/_v2/_drawers/edit-config-drawer/index.d.ts +12 -0
- package/lib/containers/_v2/_drawers/index.d.ts +4 -0
- package/lib/containers/_v2/{system-drawer → _drawers/system-drawer}/index.d.ts +2 -3
- package/lib/containers/_v2/_drawers/system-drawer/tokens/index.d.ts +7 -0
- package/lib/containers/_v2/{system-drawer → _drawers/system-drawer}/tokens/token-expires-at.d.ts +2 -0
- package/lib/containers/_v2/_drawers/system-drawer/tokens/token-value.d.ts +14 -0
- package/lib/containers/_v2/_forms/add-rule-form/custom-fields/code-attributes/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-rule-form/custom-fields/custom-instrumentation/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-rule-form/custom-fields/headers-collection/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-rule-form/custom-fields/index.d.ts +7 -0
- package/lib/containers/_v2/_forms/add-rule-form/custom-fields/payload-collection/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-rule-form/index.d.ts +7 -0
- package/lib/containers/_v2/_forms/index.d.ts +1 -0
- package/lib/containers/_v2/central-connections/helpers.d.ts +44 -0
- package/lib/containers/_v2/central-connections/index.d.ts +5 -4
- package/lib/containers/_v2/index.d.ts +2 -1
- package/lib/containers/_v2/pipeline-collectors/index.d.ts +1 -0
- package/lib/containers/multi-source-control/index.d.ts +1 -1
- package/lib/containers/source-drawer/describe/index.d.ts +1 -1
- package/lib/containers/toggle-dark-mode/index.d.ts +1 -3
- package/lib/containers/v2.js +42 -73
- package/lib/containers.js +114 -114
- package/lib/contexts/index.d.ts +1 -0
- package/lib/contexts/storybook-context.d.ts +8 -0
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks/useActionFormData.d.ts +1 -1
- package/lib/hooks/useGenericForm.d.ts +5 -4
- package/lib/hooks.js +1 -1
- package/lib/icons.js +1 -1
- package/lib/snippets/_v2/index.d.ts +2 -0
- package/lib/snippets/_v2/rich-title/index.d.ts +1 -0
- package/lib/snippets/_v2/signals-checkbox-list/index.d.ts +11 -0
- package/lib/snippets/_v2/wide-drawer/column/index.d.ts +11 -0
- package/lib/snippets/_v2/wide-drawer/column-list-item/index.d.ts +13 -0
- package/lib/snippets/_v2/wide-drawer/index.d.ts +35 -0
- package/lib/snippets.js +1 -1
- package/lib/store/useSetupStore.d.ts +0 -4
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +4 -0
- package/lib/types/instrumentation-rules/index.d.ts +4 -1
- package/lib/types/tokens/index.d.ts +7 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +10 -10
- package/lib/chunks/ui-components-BiOIOsCC.js +0 -2296
- package/lib/chunks/vendor-1oZp1FpB.js +0 -1
- package/lib/containers/_v2/central-connections/config-drawer/index.d.ts +0 -18
- package/lib/containers/_v2/central-connections/source-drawer/styled.d.ts +0 -17
- package/lib/containers/_v2/system-drawer/tokens/index.d.ts +0 -7
- package/lib/containers/_v2/system-drawer/tokens/token-actions.d.ts +0 -12
- package/lib/containers/_v2/system-drawer/tokens/token-input.d.ts +0 -8
- /package/lib/containers/_v2/{central-connections/source-drawer → _drawers/add-source-drawer}/types.d.ts +0 -0
- /package/lib/containers/_v2/{system-drawer → _drawers/system-drawer}/describe/index.d.ts +0 -0
- /package/lib/containers/_v2/{system-drawer → _drawers/system-drawer}/diagnose/index.d.ts +0 -0
|
@@ -2,5 +2,7 @@ export * from './actions';
|
|
|
2
2
|
export * from './cancel-modal';
|
|
3
3
|
export * from './delete-modal';
|
|
4
4
|
export * from './rich-title';
|
|
5
|
+
export * from './signals-checkbox-list';
|
|
5
6
|
export * from './upgrade-modal';
|
|
7
|
+
export * from './wide-drawer';
|
|
6
8
|
export * from './yaml-section-card';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { SignalType } from '@/types';
|
|
3
|
+
export interface SignalsCheckboxListProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
allowedSignals?: SignalType[];
|
|
8
|
+
selectedSignals: SignalType[];
|
|
9
|
+
setSelectedSignals: (value: SignalType[]) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const SignalsCheckboxList: FC<SignalsCheckboxListProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FC, type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
export interface ColumnProps {
|
|
3
|
+
isLeft?: boolean;
|
|
4
|
+
isRight?: boolean;
|
|
5
|
+
parentHasSubHeader?: boolean;
|
|
6
|
+
width: CSSProperties['width'];
|
|
7
|
+
header?: ReactNode;
|
|
8
|
+
list: ReactNode[];
|
|
9
|
+
listGap?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const Column: FC<ColumnProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ReactNode, type FC } from 'react';
|
|
2
|
+
export interface ColumnListItemProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
withCarret?: boolean;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
isChecked?: boolean;
|
|
10
|
+
isPartiallyChecked?: boolean;
|
|
11
|
+
onCheckboxChange?: (value: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const ColumnListItem: FC<ColumnListItemProps>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React, { type Dispatch, type SetStateAction, type ReactNode } from 'react';
|
|
2
|
+
import { SVG } from '@/types';
|
|
3
|
+
import { type ColumnProps } from './column';
|
|
4
|
+
import { type DrawerProps, type LoaderProps, type SearchProps, BadgeProps } from '@/components/_v2';
|
|
5
|
+
export interface WideDrawerProps {
|
|
6
|
+
isOpen: DrawerProps['isOpen'];
|
|
7
|
+
onClose: DrawerProps['header']['onClose'];
|
|
8
|
+
onSave: () => Promise<{
|
|
9
|
+
error?: string;
|
|
10
|
+
} | undefined>;
|
|
11
|
+
disableSave?: boolean;
|
|
12
|
+
connectionIds: {
|
|
13
|
+
value: string[];
|
|
14
|
+
setValue: Dispatch<SetStateAction<string[]>>;
|
|
15
|
+
};
|
|
16
|
+
search: Pick<SearchProps, 'value' | 'onChange' | 'placeholder' | 'segment' | 'width'>;
|
|
17
|
+
filters?: ReactNode;
|
|
18
|
+
isFormDirty?: boolean;
|
|
19
|
+
isFetching?: boolean;
|
|
20
|
+
progress?: Pick<LoaderProps, 'title' | 'subTitle' | 'percentage'>;
|
|
21
|
+
header: Pick<DrawerProps['header'], 'icon' | 'title'>;
|
|
22
|
+
subHeader?: {
|
|
23
|
+
icon: SVG;
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
badge: BadgeProps;
|
|
27
|
+
};
|
|
28
|
+
leftColumn: Pick<ColumnProps, 'width' | 'header' | 'list' | 'listGap'>;
|
|
29
|
+
rightColumn: Pick<ColumnProps, 'width' | 'header' | 'list' | 'listGap'>;
|
|
30
|
+
}
|
|
31
|
+
export interface WideDrawerRef {
|
|
32
|
+
clearErrors: () => void;
|
|
33
|
+
}
|
|
34
|
+
export declare const WIDE_DRAWER_WIDTH = "75vw";
|
|
35
|
+
export declare const WideDrawer: React.ForwardRefExoticComponent<WideDrawerProps & React.RefAttributes<WideDrawerRef>>;
|
package/lib/snippets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{bQ as AddButton,cj as CopyText,cf as EditButton,cd as Flow,dt as MapItemNode,du as NoDataNode,bR as NoteBackToSummary,cl as PodContainer,cs as SourceContainer}from"./chunks/ui-components-CCA7B7ry.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C-kwkNJP.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
|
@@ -18,8 +18,6 @@ export interface NamespaceSelectionFormData {
|
|
|
18
18
|
[namespace: string]: SelectedNamespace;
|
|
19
19
|
}
|
|
20
20
|
export interface ISetupState {
|
|
21
|
-
fetchedAllNamespaces: boolean;
|
|
22
|
-
fetchedNamespacesList: string[];
|
|
23
21
|
availableSources: AvailableSourcesByNamespace;
|
|
24
22
|
configuredSources: SourceSelectionFormData;
|
|
25
23
|
configuredFutureApps: NamespaceSelectionFormData;
|
|
@@ -27,8 +25,6 @@ export interface ISetupState {
|
|
|
27
25
|
configuredDestinationsUpdateOnly: Destination[];
|
|
28
26
|
}
|
|
29
27
|
interface ISetupStateSetters {
|
|
30
|
-
setFetchedAllNamespaces: (payload: boolean) => void;
|
|
31
|
-
addFetchedNamespace: (namespace: string) => void;
|
|
32
28
|
setAvailableSources: (payload: ISetupState['availableSources']) => void;
|
|
33
29
|
setConfiguredSources: (payload: ISetupState['configuredSources']) => void;
|
|
34
30
|
setConfiguredFutureApps: (payload: ISetupState['configuredFutureApps']) => void;
|
package/lib/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{X as ProgressKeys,di as useActiveNodeStore,cy as useDarkMode,K as useDataStreamStore,aL as useDrawerStore,a2 as useEntityStore,b7 as useFilterStore,aW as useModalStore,c5 as useNotificationStore,M as useProgressStore,bm as useSelectedStore,bN as useSetupStore}from"./chunks/ui-components-CCA7B7ry.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C-kwkNJP.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dj as Provider,dk as animations,dl as opacity,dm as palettes}from"./chunks/ui-components-CCA7B7ry.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C-kwkNJP.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
|
@@ -162,6 +162,10 @@ export interface EffectiveConfig {
|
|
|
162
162
|
automaticRolloutDisabled?: boolean;
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
+
export type GetEffectiveConfigFunc = (id: string) => Promise<EffectiveConfig | undefined>;
|
|
166
|
+
export type ApplyConfigurationsFunc = (formData: EffectiveConfig, connectionIds: string[]) => Promise<{
|
|
167
|
+
error?: string;
|
|
168
|
+
} | undefined>;
|
|
165
169
|
export declare enum Profile {
|
|
166
170
|
CodeAttributes = "code-attributes",
|
|
167
171
|
FullPayloadCollection = "full-payload-collection",
|
|
@@ -26,6 +26,10 @@ export interface InstrumentationRule {
|
|
|
26
26
|
payloadCollection?: PayloadCollection | null;
|
|
27
27
|
customInstrumentations?: CustomInstrumentations | null;
|
|
28
28
|
}
|
|
29
|
+
export type InstrumentationRuleFormData = Omit<InstrumentationRule, 'ruleId' | 'type' | 'mutable' | 'profileName'>;
|
|
30
|
+
export type CreateInstrumentationRuleFunc = (payload: InstrumentationRuleFormData) => Promise<{
|
|
31
|
+
error?: string;
|
|
32
|
+
} | undefined>;
|
|
29
33
|
export declare enum CodeAttributesKeyTypes {
|
|
30
34
|
Column = "column",
|
|
31
35
|
FilePath = "filePath",
|
|
@@ -116,5 +120,4 @@ export interface InstrumentationRuleOption {
|
|
|
116
120
|
docsDescription: string;
|
|
117
121
|
supportedLanguages: ProgrammingLanguages[];
|
|
118
122
|
}
|
|
119
|
-
export type InstrumentationRuleFormData = Omit<InstrumentationRule, 'ruleId' | 'type' | 'mutable' | 'profileName'>;
|
|
120
123
|
export {};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export interface TokenPayload {
|
|
2
2
|
token: string;
|
|
3
3
|
name: string;
|
|
4
|
+
message?: string;
|
|
4
5
|
issuedAt: number;
|
|
5
6
|
expiresAt: number;
|
|
6
7
|
}
|
|
8
|
+
export type UpdateTokenFunc = (newToken: string) => Promise<{
|
|
9
|
+
error?: string;
|
|
10
|
+
data?: {
|
|
11
|
+
updateApiToken: boolean;
|
|
12
|
+
} | null;
|
|
13
|
+
} | undefined>;
|
package/lib/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{cE as ActionCategory,as as ActionKeyTypes,aq as ActionType,cF as AddNodeTypes,cG as BooleanOperation,C as CodeAttributesKeyTypes,aV as Crud,e as CustomInstrumentationsKeyTypes,bu as DesiredStateProgress,cH as DestinationTypes,cI as EdgeTypes,U as EntityTypes,aD as FieldTypes,G as GolangCustomProbe,H as HeadersCollectionKeyTypes,ax as InputTypes,cJ as InstallationMethod,i as InstrumentationRuleType,cK as IntrumentationStatus,J as JavaCustomProbe,cL as JsonOperation,ar as K8sAttributesFrom,cq as K8sResourceKind,cM as ListDirection,cc as NodeTypes,cN as NumberOperation,cO as OtelDistroName,bS as OtherEntityTypes,b4 as OtherStatus,O as OtherStatusType,P as PayloadCollectionKeyTypes,cP as PlatformType,cQ as PodContainerLifecycleStatus,cR as PodContainerStatus,cS as PodPhase,cT as Profile,cr as ProgrammingLanguages,cU as SIGNAL_KEY_TO_TYPE,c0 as SIGNAL_TYPE_TO_KEY,cV as SignalKey,bW as SignalType,cW as SortDirection,S as StatusType,cX as StringOperation,c7 as Tier,an as WorkloadRolloutStatus}from"./chunks/ui-components-CCA7B7ry.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C-kwkNJP.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/visuals.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dH as VISUAL_ODIGOS_LOGO_HEIGHT,dI as VISUAL_ODIGOS_LOGO_WIDTH,V as VisualGreenRings,dJ as VisualOdigosLogo}from"./chunks/ui-components-CCA7B7ry.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C-kwkNJP.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odigos/ui-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.191",
|
|
4
4
|
"author": "Odigos",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -112,11 +112,11 @@
|
|
|
112
112
|
"react-dom": "19.2.4",
|
|
113
113
|
"react-error-boundary": "^6.1.0",
|
|
114
114
|
"styled-components": "6.2.0",
|
|
115
|
-
"zustand": "^5.0.
|
|
115
|
+
"zustand": "^5.0.11"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
|
-
"@babel/core": "^7.
|
|
119
|
-
"@babel/preset-env": "^7.
|
|
118
|
+
"@babel/core": "^7.29.0",
|
|
119
|
+
"@babel/preset-env": "^7.29.0",
|
|
120
120
|
"@babel/preset-react": "^7.28.5",
|
|
121
121
|
"@babel/preset-typescript": "^7.28.5",
|
|
122
122
|
"@eslint/eslintrc": "^3.3.3",
|
|
@@ -126,9 +126,9 @@
|
|
|
126
126
|
"@rollup/plugin-terser": "^0.4.4",
|
|
127
127
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
128
128
|
"@storybook/addon-webpack5-compiler-babel": "^4.0.0",
|
|
129
|
-
"@storybook/react-webpack5": "10.2.
|
|
130
|
-
"@types/node": "^25.
|
|
131
|
-
"@types/react": "^19.2.
|
|
129
|
+
"@storybook/react-webpack5": "10.2.8",
|
|
130
|
+
"@types/node": "^25.2.2",
|
|
131
|
+
"@types/react": "^19.2.13",
|
|
132
132
|
"@types/react-dom": "^19.2.3",
|
|
133
133
|
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
134
134
|
"@typescript-eslint/parser": "^8.54.0",
|
|
@@ -136,13 +136,13 @@
|
|
|
136
136
|
"babel-plugin-styled-components": "^2.1.4",
|
|
137
137
|
"eslint": "^9.39.2",
|
|
138
138
|
"eslint-plugin-react": "^7.37.5",
|
|
139
|
-
"eslint-plugin-storybook": "10.2.
|
|
139
|
+
"eslint-plugin-storybook": "10.2.8",
|
|
140
140
|
"postcss": "^8.5.6",
|
|
141
|
-
"rollup": "^4.57.
|
|
141
|
+
"rollup": "^4.57.1",
|
|
142
142
|
"rollup-plugin-filesize": "^10.0.0",
|
|
143
143
|
"rollup-plugin-postcss": "^4.0.2",
|
|
144
144
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
145
|
-
"storybook": "10.2.
|
|
145
|
+
"storybook": "10.2.8",
|
|
146
146
|
"typescript": "^5.9.3"
|
|
147
147
|
}
|
|
148
148
|
}
|