@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.
Files changed (84) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/lib/chunks/index-BgT3kLZa.js +3 -0
  3. package/lib/chunks/ui-components-CCA7B7ry.js +2364 -0
  4. package/lib/chunks/vendor-C-kwkNJP.js +1 -0
  5. package/lib/components/_v2/drop-data/index.d.ts +5 -1
  6. package/lib/components/_v2/drop-down/index.d.ts +9 -0
  7. package/lib/components/_v2/field-message/index.d.ts +6 -0
  8. package/lib/components/_v2/field-title/index.d.ts +9 -0
  9. package/lib/components/_v2/index.d.ts +6 -0
  10. package/lib/components/_v2/input/index.d.ts +3 -1
  11. package/lib/components/_v2/input-list/index.d.ts +15 -0
  12. package/lib/components/_v2/input-table/dynamic-field/index.d.ts +13 -0
  13. package/lib/components/_v2/input-table/index.d.ts +16 -0
  14. package/lib/components/_v2/input-table/types.d.ts +15 -0
  15. package/lib/components/_v2/island/index.d.ts +2 -1
  16. package/lib/components/_v2/segment/index.d.ts +2 -0
  17. package/lib/components/_v2/textarea/index.d.ts +11 -0
  18. package/lib/components/_v2/toggle/index.d.ts +2 -1
  19. package/lib/components/styled.d.ts +7 -0
  20. package/lib/components/v2.js +1 -1
  21. package/lib/components.js +1 -1
  22. package/lib/constants/strings/index.d.ts +1 -0
  23. package/lib/constants.js +1 -1
  24. package/lib/containers/_v2/_drawers/add-rule-drawer/helpers.d.ts +7 -0
  25. package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +10 -0
  26. package/lib/containers/_v2/{central-connections/source-drawer → _drawers/add-source-drawer}/index.d.ts +3 -4
  27. package/lib/containers/_v2/{central-connections/source-drawer → _drawers/add-source-drawer}/namespaces-column/index.d.ts +3 -2
  28. package/lib/containers/_v2/{central-connections/source-drawer → _drawers/add-source-drawer}/workloads-column/index.d.ts +3 -2
  29. package/lib/containers/_v2/_drawers/edit-config-drawer/index.d.ts +12 -0
  30. package/lib/containers/_v2/_drawers/index.d.ts +4 -0
  31. package/lib/containers/_v2/{system-drawer → _drawers/system-drawer}/index.d.ts +2 -3
  32. package/lib/containers/_v2/_drawers/system-drawer/tokens/index.d.ts +7 -0
  33. package/lib/containers/_v2/{system-drawer → _drawers/system-drawer}/tokens/token-expires-at.d.ts +2 -0
  34. package/lib/containers/_v2/_drawers/system-drawer/tokens/token-value.d.ts +14 -0
  35. package/lib/containers/_v2/_forms/add-rule-form/custom-fields/code-attributes/index.d.ts +5 -0
  36. package/lib/containers/_v2/_forms/add-rule-form/custom-fields/custom-instrumentation/index.d.ts +5 -0
  37. package/lib/containers/_v2/_forms/add-rule-form/custom-fields/headers-collection/index.d.ts +5 -0
  38. package/lib/containers/_v2/_forms/add-rule-form/custom-fields/index.d.ts +7 -0
  39. package/lib/containers/_v2/_forms/add-rule-form/custom-fields/payload-collection/index.d.ts +5 -0
  40. package/lib/containers/_v2/_forms/add-rule-form/index.d.ts +7 -0
  41. package/lib/containers/_v2/_forms/index.d.ts +1 -0
  42. package/lib/containers/_v2/central-connections/helpers.d.ts +44 -0
  43. package/lib/containers/_v2/central-connections/index.d.ts +5 -4
  44. package/lib/containers/_v2/index.d.ts +2 -1
  45. package/lib/containers/_v2/pipeline-collectors/index.d.ts +1 -0
  46. package/lib/containers/multi-source-control/index.d.ts +1 -1
  47. package/lib/containers/source-drawer/describe/index.d.ts +1 -1
  48. package/lib/containers/toggle-dark-mode/index.d.ts +1 -3
  49. package/lib/containers/v2.js +42 -73
  50. package/lib/containers.js +114 -114
  51. package/lib/contexts/index.d.ts +1 -0
  52. package/lib/contexts/storybook-context.d.ts +8 -0
  53. package/lib/contexts.js +1 -1
  54. package/lib/functions.js +1 -1
  55. package/lib/hooks/useActionFormData.d.ts +1 -1
  56. package/lib/hooks/useGenericForm.d.ts +5 -4
  57. package/lib/hooks.js +1 -1
  58. package/lib/icons.js +1 -1
  59. package/lib/snippets/_v2/index.d.ts +2 -0
  60. package/lib/snippets/_v2/rich-title/index.d.ts +1 -0
  61. package/lib/snippets/_v2/signals-checkbox-list/index.d.ts +11 -0
  62. package/lib/snippets/_v2/wide-drawer/column/index.d.ts +11 -0
  63. package/lib/snippets/_v2/wide-drawer/column-list-item/index.d.ts +13 -0
  64. package/lib/snippets/_v2/wide-drawer/index.d.ts +35 -0
  65. package/lib/snippets.js +1 -1
  66. package/lib/store/useSetupStore.d.ts +0 -4
  67. package/lib/store.js +1 -1
  68. package/lib/theme.js +1 -1
  69. package/lib/types/common/index.d.ts +4 -0
  70. package/lib/types/instrumentation-rules/index.d.ts +4 -1
  71. package/lib/types/tokens/index.d.ts +7 -0
  72. package/lib/types.js +1 -1
  73. package/lib/visuals.js +1 -1
  74. package/package.json +10 -10
  75. package/lib/chunks/ui-components-BiOIOsCC.js +0 -2296
  76. package/lib/chunks/vendor-1oZp1FpB.js +0 -1
  77. package/lib/containers/_v2/central-connections/config-drawer/index.d.ts +0 -18
  78. package/lib/containers/_v2/central-connections/source-drawer/styled.d.ts +0 -17
  79. package/lib/containers/_v2/system-drawer/tokens/index.d.ts +0 -7
  80. package/lib/containers/_v2/system-drawer/tokens/token-actions.d.ts +0 -12
  81. package/lib/containers/_v2/system-drawer/tokens/token-input.d.ts +0 -8
  82. /package/lib/containers/_v2/{central-connections/source-drawer → _drawers/add-source-drawer}/types.d.ts +0 -0
  83. /package/lib/containers/_v2/{system-drawer → _drawers/system-drawer}/describe/index.d.ts +0 -0
  84. /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';
@@ -4,6 +4,7 @@ import { type BadgeProps } from '@/components/_v2/badge';
4
4
  export interface RichTitleProps {
5
5
  icon: SVG;
6
6
  title: string;
7
+ subTitle?: string;
7
8
  withCopy?: boolean;
8
9
  badge?: BadgeProps;
9
10
  children?: ReactNode;
@@ -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{bD as AddButton,ce as CopyText,ca as EditButton,c8 as Flow,dk as MapItemNode,dl as NoDataNode,bE as NoteBackToSummary,cg as PodContainer,cn as SourceContainer}from"./chunks/ui-components-BiOIOsCC.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-1oZp1FpB.js";import"react-dom";import"@xyflow/react";import"react-error-boundary";import"lottie-react";import"prism-react-renderer";
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{P as ProgressKeys,dc as useActiveNodeStore,ct as useDarkMode,u as useDataStreamStore,av as useDrawerStore,a5 as useEntityStore,aV as useFilterStore,aI as useModalStore,c0 as useNotificationStore,g as useProgressStore,b8 as useSelectedStore,bA as useSetupStore}from"./chunks/ui-components-BiOIOsCC.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-1oZp1FpB.js";import"react-dom";import"@xyflow/react";import"react-error-boundary";import"lottie-react";import"prism-react-renderer";
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{dd as Provider,de as animations,df as opacity,dg as palettes}from"./chunks/ui-components-BiOIOsCC.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-1oZp1FpB.js";import"react-dom";import"@xyflow/react";import"react-error-boundary";import"lottie-react";import"prism-react-renderer";
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{cy as ActionCategory,ac as ActionKeyTypes,aa as ActionType,cz as AddNodeTypes,cA as BooleanOperation,bX as CodeAttributesKeyTypes,aH as Crud,bV as CustomInstrumentationsKeyTypes,bg as DesiredStateProgress,cB as DestinationTypes,cC as EdgeTypes,E as EntityTypes,an as FieldTypes,bW as GolangCustomProbe,bT as HeadersCollectionKeyTypes,ah as InputTypes,cD as InstallationMethod,bZ as InstrumentationRuleType,cE as IntrumentationStatus,bU as JavaCustomProbe,cF as JsonOperation,ab as K8sAttributesFrom,cl as K8sResourceKind,cG as ListDirection,c7 as NodeTypes,cH as NumberOperation,cI as OtelDistroName,bF as OtherEntityTypes,aS as OtherStatus,O as OtherStatusType,bY as PayloadCollectionKeyTypes,cJ as PlatformType,cK as PodContainerLifecycleStatus,cL as PodContainerStatus,cM as PodPhase,cN as Profile,cm as ProgrammingLanguages,cO as SIGNAL_KEY_TO_TYPE,bP as SIGNAL_TYPE_TO_KEY,cP as SignalKey,bJ as SignalType,cQ as SortDirection,S as StatusType,cR as StringOperation,c3 as Tier,_ as WorkloadRolloutStatus}from"./chunks/ui-components-BiOIOsCC.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-1oZp1FpB.js";import"react-dom";import"@xyflow/react";import"react-error-boundary";import"lottie-react";import"prism-react-renderer";
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{dA as VISUAL_ODIGOS_LOGO_HEIGHT,dB as VISUAL_ODIGOS_LOGO_WIDTH,dC as VisualGreenRings,dD as VisualOdigosLogo}from"./chunks/ui-components-BiOIOsCC.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-1oZp1FpB.js";import"react-dom";import"@xyflow/react";import"react-error-boundary";import"lottie-react";import"prism-react-renderer";
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.189",
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.10"
115
+ "zustand": "^5.0.11"
116
116
  },
117
117
  "devDependencies": {
118
- "@babel/core": "^7.28.6",
119
- "@babel/preset-env": "^7.28.6",
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.1",
130
- "@types/node": "^25.0.10",
131
- "@types/react": "^19.2.10",
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.1",
139
+ "eslint-plugin-storybook": "10.2.8",
140
140
  "postcss": "^8.5.6",
141
- "rollup": "^4.57.0",
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.1",
145
+ "storybook": "10.2.8",
146
146
  "typescript": "^5.9.3"
147
147
  }
148
148
  }