@odigos/ui-kit 0.0.211 → 0.0.213

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 (79) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/lib/chunks/index-Bh2gKc3b.js +3 -0
  3. package/lib/chunks/ui-components-BliHHDta.js +2388 -0
  4. package/lib/chunks/vendor-C150cdxb.js +1 -0
  5. package/lib/components/_v2/badge/index.d.ts +2 -0
  6. package/lib/components/_v2/cards/section-card/index.d.ts +1 -0
  7. package/lib/components/_v2/checkbox/index.d.ts +5 -1
  8. package/lib/components/_v2/field-message/index.d.ts +1 -0
  9. package/lib/components/_v2/field-title/index.d.ts +2 -0
  10. package/lib/components/_v2/index.d.ts +1 -0
  11. package/lib/components/_v2/input/index.d.ts +4 -3
  12. package/lib/components/_v2/input-list/index.d.ts +5 -3
  13. package/lib/components/_v2/input-table/index.d.ts +5 -3
  14. package/lib/components/_v2/stepper/index.d.ts +11 -0
  15. package/lib/components/_v2/textarea/index.d.ts +4 -3
  16. package/lib/components/_v2/toggle/index.d.ts +5 -1
  17. package/lib/components/styled.d.ts +3 -6
  18. package/lib/components/tooltip/index.d.ts +1 -0
  19. package/lib/components/v2.js +1 -1
  20. package/lib/components.js +1 -1
  21. package/lib/constants/destinations/index.d.ts +5 -0
  22. package/lib/constants/strings/index.d.ts +12 -0
  23. package/lib/constants.js +1 -1
  24. package/lib/containers/_v2/_drawers/add-action-drawer/index.d.ts +2 -2
  25. package/lib/containers/_v2/_drawers/add-destination-drawer/form-column/index.d.ts +4 -7
  26. package/lib/containers/_v2/_drawers/add-destination-drawer/helpers.d.ts +1 -9
  27. package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +10 -5
  28. package/lib/containers/_v2/_drawers/add-destination-drawer/lists-column/index.d.ts +3 -5
  29. package/lib/containers/_v2/_drawers/add-destination-drawer/types.d.ts +1 -6
  30. package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +3 -3
  31. package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +7 -5
  32. package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/index.d.ts +2 -1
  33. package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/list/index.d.ts +1 -0
  34. package/lib/containers/_v2/_drawers/add-source-drawer/types.d.ts +3 -0
  35. package/lib/containers/_v2/_drawers/add-source-drawer/workloads-column/index.d.ts +2 -1
  36. package/lib/containers/_v2/_forms/add-action-form/context.d.ts +18 -0
  37. package/lib/containers/_v2/_forms/add-action-form/index.d.ts +2 -6
  38. package/lib/containers/_v2/_forms/add-destination-form/context.d.ts +36 -0
  39. package/lib/containers/_v2/_forms/add-destination-form/dynamic-fields/index.d.ts +1 -0
  40. package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +4 -5
  41. package/lib/containers/_v2/_forms/add-rule-form/context.d.ts +18 -0
  42. package/lib/containers/_v2/_forms/add-rule-form/index.d.ts +2 -6
  43. package/lib/containers/_v2/_forms/add-source-form/context.d.ts +21 -0
  44. package/lib/containers/_v2/_forms/add-source-form/index.d.ts +1 -0
  45. package/lib/containers/_v2/_forms/index.d.ts +1 -0
  46. package/lib/containers/_v2/central-connections/index.d.ts +2 -1
  47. package/lib/containers/_v2/index.d.ts +1 -0
  48. package/lib/containers/_v2/onboarding/background/index.d.ts +7 -0
  49. package/lib/containers/_v2/onboarding/get-started/index.d.ts +5 -0
  50. package/lib/containers/_v2/onboarding/index.d.ts +14 -0
  51. package/lib/containers/_v2/onboarding/summary/index.d.ts +12 -0
  52. package/lib/containers/_v2/pipeline-collectors/general-info/yaml-drawer/index.d.ts +1 -1
  53. package/lib/containers/v2.js +91 -30
  54. package/lib/containers.js +131 -131
  55. package/lib/contexts.js +1 -1
  56. package/lib/functions/deep-values/index.d.ts +2 -0
  57. package/lib/functions/index.d.ts +1 -0
  58. package/lib/functions.js +1 -1
  59. package/lib/hooks/useGenericForm.d.ts +2 -0
  60. package/lib/hooks.js +1 -1
  61. package/lib/icons.js +1 -1
  62. package/lib/snippets/_v2/index.d.ts +1 -0
  63. package/lib/snippets/_v2/odigos-logo-text-by-tier/index.d.ts +5 -0
  64. package/lib/snippets/_v2/wide-drawer/column-list-item/index.d.ts +1 -0
  65. package/lib/snippets/_v2/yaml-section-card/index.d.ts +1 -0
  66. package/lib/snippets.js +1 -1
  67. package/lib/store.js +1 -1
  68. package/lib/theme.js +1 -1
  69. package/lib/types/common/index.d.ts +307 -3
  70. package/lib/types/destinations/index.d.ts +9 -8
  71. package/lib/types/snapshot/index.d.ts +4 -4
  72. package/lib/types.js +1 -1
  73. package/lib/visuals.js +1 -1
  74. package/package.json +28 -28
  75. package/lib/chunks/index-BURQQLWb.js +0 -3
  76. package/lib/chunks/ui-components-B5U474B5.js +0 -2387
  77. package/lib/chunks/vendor-D99eCWta.js +0 -1
  78. package/lib/containers/_v2/_drawers/add-action-drawer/helpers.d.ts +0 -7
  79. package/lib/containers/_v2/_drawers/add-rule-drawer/helpers.d.ts +0 -7
@@ -1,6 +1,7 @@
1
1
  export * from './actions';
2
2
  export * from './cancel-modal';
3
3
  export * from './delete-modal';
4
+ export * from './odigos-logo-text-by-tier';
4
5
  export * from './rich-title';
5
6
  export * from './signals-checkbox-list';
6
7
  export * from './upgrade-modal';
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ export interface OdigosLogoTextByTierProps {
3
+ size?: number;
4
+ }
5
+ export declare const OdigosLogoTextByTier: FC<OdigosLogoTextByTierProps>;
@@ -1,6 +1,7 @@
1
1
  import { type ReactNode, type FC } from 'react';
2
2
  import type { SVG } from '@/types';
3
3
  export interface ColumnListItemProps {
4
+ dataId?: string;
4
5
  icon?: SVG;
5
6
  title: string;
6
7
  description?: string;
@@ -3,5 +3,6 @@ export interface YamlSectionCardProps {
3
3
  title?: string;
4
4
  yaml?: string | null;
5
5
  defaultOpen?: boolean;
6
+ fullHeight?: boolean;
6
7
  }
7
8
  export declare const YamlSectionCard: FC<YamlSectionCardProps>;
package/lib/snippets.js CHANGED
@@ -1 +1 @@
1
- export{b1 as AddButton,cw as CopyText,cs as EditButton,cr as Flow,dE as MapItemNode,dF as NoDataNode,c8 as NoteBackToSummary,cy as PodContainer,cF as SourceContainer}from"./chunks/ui-components-B5U474B5.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-D99eCWta.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{b3 as AddButton,cz as CopyText,cv as EditButton,cu as Flow,dJ as MapItemNode,dK as NoDataNode,cb as NoteBackToSummary,cB as PodContainer,cI as SourceContainer}from"./chunks/ui-components-BliHHDta.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
package/lib/store.js CHANGED
@@ -1 +1 @@
1
- export{ar as ProgressKeys,cq as useActiveNodeStore,cL as useDarkMode,ad as useDataStreamStore,b8 as useDrawerStore,ax as useEntityStore,bv as useFilterStore,bj as useModalStore,cj as useNotificationStore,ao as useProgressStore,bL as useSelectedStore,c6 as useSetupStore}from"./chunks/ui-components-B5U474B5.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-D99eCWta.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{as as ProgressKeys,ct as useActiveNodeStore,cO as useDarkMode,O as useDataStreamStore,ba as useDrawerStore,ay as useEntityStore,bx as useFilterStore,bl as useModalStore,cm as useNotificationStore,ar as useProgressStore,bN as useSelectedStore,c8 as useSetupStore}from"./chunks/ui-components-BliHHDta.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
package/lib/theme.js CHANGED
@@ -1 +1 @@
1
- export{dw as Provider,dx as animations,dy as opacity,dz as palettes}from"./chunks/ui-components-B5U474B5.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-D99eCWta.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{dB as Provider,dC as animations,dD as opacity,dE as palettes}from"./chunks/ui-components-BliHHDta.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
@@ -156,13 +156,317 @@ export interface Connection {
156
156
  connectedAt?: number | null;
157
157
  lastSeenAt?: number | null;
158
158
  }
159
+ export interface ProvenanceEntry {
160
+ helmPath: string;
161
+ reconciledFrom: string;
162
+ }
159
163
  export interface EffectiveConfig {
164
+ configVersion: number;
165
+ telemetryEnabled?: boolean | null;
166
+ openshiftEnabled?: boolean | null;
167
+ ignoredNamespaces?: string[] | null;
168
+ ignoredContainers?: string[] | null;
169
+ ignoreOdigosNamespace?: boolean | null;
170
+ psp?: boolean | null;
171
+ imagePrefix?: string | null;
172
+ skipWebhookIssuerCreation?: boolean | null;
173
+ collectorGateway?: {
174
+ minReplicas?: number | null;
175
+ maxReplicas?: number | null;
176
+ requestMemoryMiB?: number | null;
177
+ limitMemoryMiB?: number | null;
178
+ requestCPUm?: number | null;
179
+ limitCPUm?: number | null;
180
+ memoryLimiterLimitMiB?: number | null;
181
+ memoryLimiterSpikeLimitMiB?: number | null;
182
+ goMemLimitMiB?: number | null;
183
+ serviceGraphDisabled?: boolean | null;
184
+ clusterMetricsEnabled?: boolean | null;
185
+ httpsProxyAddress?: string | null;
186
+ nodeSelector?: string | null;
187
+ } | null;
188
+ collectorNode?: {
189
+ collectorOwnMetricsPort?: number | null;
190
+ requestMemoryMiB?: number | null;
191
+ limitMemoryMiB?: number | null;
192
+ requestCPUm?: number | null;
193
+ limitCPUm?: number | null;
194
+ memoryLimiterLimitMiB?: number | null;
195
+ memoryLimiterSpikeLimitMiB?: number | null;
196
+ goMemLimitMiB?: number | null;
197
+ k8sNodeLogsDirectory?: string | null;
198
+ enableDataCompression?: boolean | null;
199
+ otlpExporterConfiguration?: {
200
+ enableDataCompression?: boolean | null;
201
+ timeout?: string | null;
202
+ retryOnFailure?: {
203
+ enabled?: boolean | null;
204
+ initialInterval?: string | null;
205
+ maxInterval?: string | null;
206
+ maxElapsedTime?: string | null;
207
+ } | null;
208
+ } | null;
209
+ } | null;
210
+ profiles?: string[] | null;
211
+ allowConcurrentAgents?: {
212
+ enabled?: boolean | null;
213
+ } | null;
214
+ uiMode?: string | null;
215
+ uiPaginationLimit?: number | null;
216
+ uiRemoteUrl?: string | null;
217
+ centralBackendURL?: string | null;
218
+ clusterName?: string | null;
219
+ instrumentor?: {
220
+ mountMethod?: string | null;
221
+ agentEnvVarsInjectionMethod?: string | null;
222
+ checkDeviceHealthBeforeInjection?: boolean | null;
223
+ } | null;
224
+ customContainerRuntimeSocketPath?: string | null;
225
+ userInstrumentationEnvs?: {
226
+ languages?: string | null;
227
+ } | null;
228
+ nodeSelector?: string | null;
229
+ karpenter?: {
230
+ enabled?: boolean | null;
231
+ } | null;
232
+ rollout?: {
233
+ automaticRolloutDisabled?: boolean | null;
234
+ } | null;
235
+ autoRollback?: {
236
+ disabled?: boolean | null;
237
+ graceTime?: string | null;
238
+ stabilityWindowTime?: string | null;
239
+ } | null;
240
+ oidc?: {
241
+ tenantUrl?: string | null;
242
+ clientId?: string | null;
243
+ clientSecret?: string | null;
244
+ } | null;
245
+ odigletHealthProbeBindPort?: number | null;
246
+ goAutoOffsetsCron?: string | null;
247
+ goAutoOffsetsMode?: string | null;
248
+ clickhouseJsonTypeEnabled?: boolean | null;
249
+ resourceSizePreset?: string | null;
250
+ wasp?: {
251
+ enabled?: boolean | null;
252
+ } | null;
253
+ metricsSources?: {
254
+ spanMetrics?: {
255
+ disabled?: boolean | null;
256
+ interval?: string | null;
257
+ metricsExpiration?: string | null;
258
+ additionalDimensions?: string[] | null;
259
+ histogramDisabled?: boolean | null;
260
+ histogramBuckets?: string[] | null;
261
+ includedProcessInDimensions?: boolean | null;
262
+ excludedResourceAttributes?: string[] | null;
263
+ resourceMetricsKeyAttributes?: string[] | null;
264
+ } | null;
265
+ hostMetrics?: {
266
+ disabled?: boolean | null;
267
+ interval?: string | null;
268
+ } | null;
269
+ kubeletStats?: {
270
+ disabled?: boolean | null;
271
+ interval?: string | null;
272
+ } | null;
273
+ odigosOwnMetrics?: {
274
+ interval?: string | null;
275
+ } | null;
276
+ agentMetrics?: {
277
+ spanMetrics?: {
278
+ enabled?: boolean | null;
279
+ } | null;
280
+ runtimeMetrics?: {
281
+ java?: {
282
+ disabled?: boolean | null;
283
+ metrics?: {
284
+ name?: string | null;
285
+ disabled?: boolean | null;
286
+ }[] | null;
287
+ } | null;
288
+ } | null;
289
+ } | null;
290
+ } | null;
291
+ agentsInitContainerResources?: {
292
+ requestCPUm?: number | null;
293
+ limitCPUm?: number | null;
294
+ requestMemoryMiB?: number | null;
295
+ limitMemoryMiB?: number | null;
296
+ } | null;
297
+ traceIdSuffix?: string | null;
298
+ allowedTestConnectionHosts?: string[] | null;
299
+ odigosOwnTelemetryStore?: {
300
+ metricsStoreDisabled?: boolean | null;
301
+ } | null;
302
+ imagePullSecrets?: string[] | null;
303
+ componentLogLevels?: {
304
+ default?: string | null;
305
+ autoscaler?: string | null;
306
+ scheduler?: string | null;
307
+ instrumentor?: string | null;
308
+ odiglet?: string | null;
309
+ deviceplugin?: string | null;
310
+ ui?: string | null;
311
+ collector?: string | null;
312
+ } | null;
313
+ provenance?: ProvenanceEntry[] | null;
314
+ manifestYAML?: string | null;
315
+ }
316
+ export interface EffectiveConfigInput {
317
+ configVersion?: number;
318
+ telemetryEnabled?: boolean | null;
319
+ openshiftEnabled?: boolean | null;
320
+ ignoredNamespaces?: string[] | null;
321
+ ignoredContainers?: string[] | null;
322
+ ignoreOdigosNamespace?: boolean | null;
323
+ psp?: boolean | null;
324
+ imagePrefix?: string | null;
325
+ skipWebhookIssuerCreation?: boolean | null;
326
+ collectorGateway?: {
327
+ minReplicas?: number | null;
328
+ maxReplicas?: number | null;
329
+ requestMemoryMiB?: number | null;
330
+ limitMemoryMiB?: number | null;
331
+ requestCPUm?: number | null;
332
+ limitCPUm?: number | null;
333
+ memoryLimiterLimitMiB?: number | null;
334
+ memoryLimiterSpikeLimitMiB?: number | null;
335
+ goMemLimitMiB?: number | null;
336
+ serviceGraphDisabled?: boolean | null;
337
+ clusterMetricsEnabled?: boolean | null;
338
+ httpsProxyAddress?: string | null;
339
+ nodeSelector?: string | null;
340
+ } | null;
341
+ collectorNode?: {
342
+ collectorOwnMetricsPort?: number | null;
343
+ requestMemoryMiB?: number | null;
344
+ limitMemoryMiB?: number | null;
345
+ requestCPUm?: number | null;
346
+ limitCPUm?: number | null;
347
+ memoryLimiterLimitMiB?: number | null;
348
+ memoryLimiterSpikeLimitMiB?: number | null;
349
+ goMemLimitMiB?: number | null;
350
+ k8sNodeLogsDirectory?: string | null;
351
+ enableDataCompression?: boolean | null;
352
+ otlpExporterConfiguration?: {
353
+ enableDataCompression?: boolean | null;
354
+ timeout?: string | null;
355
+ retryOnFailure?: {
356
+ enabled?: boolean | null;
357
+ initialInterval?: string | null;
358
+ maxInterval?: string | null;
359
+ maxElapsedTime?: string | null;
360
+ } | null;
361
+ } | null;
362
+ } | null;
363
+ profiles?: string[] | null;
364
+ allowConcurrentAgents?: {
365
+ enabled?: boolean | null;
366
+ } | null;
367
+ uiMode?: string | null;
368
+ uiPaginationLimit?: number | null;
369
+ uiRemoteUrl?: string | null;
370
+ centralBackendURL?: string | null;
371
+ clusterName?: string | null;
372
+ instrumentor?: {
373
+ mountMethod?: string | null;
374
+ agentEnvVarsInjectionMethod?: string | null;
375
+ checkDeviceHealthBeforeInjection?: boolean | null;
376
+ } | null;
377
+ customContainerRuntimeSocketPath?: string | null;
378
+ userInstrumentationEnvs?: {
379
+ languages?: string | null;
380
+ } | null;
381
+ nodeSelector?: string | null;
382
+ karpenter?: {
383
+ enabled?: boolean | null;
384
+ } | null;
160
385
  rollout?: {
161
- automaticRolloutDisabled?: boolean;
162
- };
386
+ automaticRolloutDisabled?: boolean | null;
387
+ } | null;
388
+ autoRollback?: {
389
+ disabled?: boolean | null;
390
+ graceTime?: string | null;
391
+ stabilityWindowTime?: string | null;
392
+ } | null;
393
+ oidc?: {
394
+ tenantUrl?: string | null;
395
+ clientId?: string | null;
396
+ clientSecret?: string | null;
397
+ } | null;
398
+ odigletHealthProbeBindPort?: number | null;
399
+ goAutoOffsetsCron?: string | null;
400
+ goAutoOffsetsMode?: string | null;
401
+ clickhouseJsonTypeEnabled?: boolean | null;
402
+ resourceSizePreset?: string | null;
403
+ wasp?: {
404
+ enabled?: boolean | null;
405
+ } | null;
406
+ metricsSources?: {
407
+ spanMetrics?: {
408
+ disabled?: boolean | null;
409
+ interval?: string | null;
410
+ metricsExpiration?: string | null;
411
+ additionalDimensions?: string[] | null;
412
+ histogramDisabled?: boolean | null;
413
+ histogramBuckets?: string[] | null;
414
+ includedProcessInDimensions?: boolean | null;
415
+ excludedResourceAttributes?: string[] | null;
416
+ resourceMetricsKeyAttributes?: string[] | null;
417
+ } | null;
418
+ hostMetrics?: {
419
+ disabled?: boolean | null;
420
+ interval?: string | null;
421
+ } | null;
422
+ kubeletStats?: {
423
+ disabled?: boolean | null;
424
+ interval?: string | null;
425
+ } | null;
426
+ odigosOwnMetrics?: {
427
+ interval?: string | null;
428
+ } | null;
429
+ agentMetrics?: {
430
+ spanMetrics?: {
431
+ enabled?: boolean | null;
432
+ } | null;
433
+ runtimeMetrics?: {
434
+ java?: {
435
+ disabled?: boolean | null;
436
+ metrics?: {
437
+ name?: string | null;
438
+ disabled?: boolean | null;
439
+ }[] | null;
440
+ } | null;
441
+ } | null;
442
+ } | null;
443
+ } | null;
444
+ agentsInitContainerResources?: {
445
+ requestCPUm?: number | null;
446
+ limitCPUm?: number | null;
447
+ requestMemoryMiB?: number | null;
448
+ limitMemoryMiB?: number | null;
449
+ } | null;
450
+ traceIdSuffix?: string | null;
451
+ allowedTestConnectionHosts?: string[] | null;
452
+ odigosOwnTelemetryStore?: {
453
+ metricsStoreDisabled?: boolean | null;
454
+ } | null;
455
+ imagePullSecrets?: string[] | null;
456
+ componentLogLevels?: {
457
+ default?: string | null;
458
+ autoscaler?: string | null;
459
+ scheduler?: string | null;
460
+ instrumentor?: string | null;
461
+ odiglet?: string | null;
462
+ deviceplugin?: string | null;
463
+ ui?: string | null;
464
+ collector?: string | null;
465
+ } | null;
466
+ manifestYAML?: string | null;
163
467
  }
164
468
  export type GetEffectiveConfigFunc = (id: string) => Promise<EffectiveConfig | undefined>;
165
- export type ApplyConfigurationsFunc = (formData: EffectiveConfig, connectionIds: string[]) => Promise<{
469
+ export type ApplyConfigurationsFunc = (formData: Partial<EffectiveConfigInput>, connectionIds: string[]) => Promise<{
166
470
  error?: string;
167
471
  } | undefined>;
168
472
  export declare enum Profile {
@@ -143,12 +143,6 @@ export interface DestinationDynamicField {
143
143
  placeholder?: string;
144
144
  options?: DropdownProps['options'];
145
145
  }
146
- export interface TestConnectionResponse {
147
- succeeded: boolean;
148
- message: string;
149
- reason: string;
150
- destinationType?: DestinationTypes;
151
- }
152
146
  export interface GetDestinationCategoriesResult {
153
147
  destinationCategories: {
154
148
  categories: DestinationCategories;
@@ -166,14 +160,21 @@ export interface DestinationFormData {
166
160
  type: Destination['destinationType']['type'];
167
161
  name: Destination['destinationType']['displayName'];
168
162
  currentStreamName: string;
163
+ disabled: Destination['disabled'];
169
164
  exportedSignals: Destination['exportedSignals'];
170
165
  fields: {
171
166
  key: string;
172
167
  value: string;
173
168
  }[];
174
- disabled: Destination['disabled'];
175
169
  }
176
- export type TestConnectionFunc = (payload: DestinationFormData) => Promise<TestConnectionResponse | undefined>;
177
170
  export type CreateDestinationFunc = (payload: DestinationFormData, connectionIds?: string[]) => Promise<{
178
171
  error?: string;
179
172
  } | undefined>;
173
+ export interface TestConnectionResponse {
174
+ destinationType: DestinationTypes;
175
+ statusCode: number;
176
+ succeeded: boolean;
177
+ message?: string | null;
178
+ reason?: string | null;
179
+ }
180
+ export type TestConnectionFunc = (payload: DestinationFormData, connectionIds?: string[]) => Promise<TestConnectionResponse | undefined>;
@@ -16,13 +16,13 @@ export interface ClusterSnapshot {
16
16
  clusterId: string;
17
17
  clusterName: string;
18
18
  namespaces: NamespaceSnapshot[];
19
- timestamp: number;
19
+ timestamp?: number;
20
20
  }
21
21
  export interface AllClusterSnapshots {
22
22
  clusters: ClusterSnapshot[];
23
- totalWorkloads: number;
24
- totalNamespaces: number;
25
- lastUpdated: number;
23
+ totalWorkloads?: number;
24
+ totalNamespaces?: number;
25
+ lastUpdated?: number;
26
26
  }
27
27
  export type GetAllClusterSnapshots = () => Promise<AllClusterSnapshots | undefined>;
28
28
  export type GetClusterSnapshot = (clusterId: string) => Promise<ClusterSnapshot | undefined>;
package/lib/types.js CHANGED
@@ -1 +1 @@
1
- export{cR as ActionCategory,A as ActionKeyTypes,l as ActionType,cS as AddNodeTypes,cT as BooleanOperation,J as CodeAttributesKeyTypes,bi as Crud,Y as CustomInstrumentationsKeyTypes,bN as DesiredStateProgress,cU as DestinationTypes,cV as EdgeTypes,aq as EntityTypes,k as FieldTypes,U as GolangCustomProbe,P as HeadersCollectionKeyTypes,c as InputTypes,cW as InstallationMethod,Z as InstrumentationRuleType,cX as IntrumentationStatus,X as JavaCustomProbe,cY as JsonOperation,K as K8sAttributesFrom,cD as K8sResourceKind,cZ as ListDirection,cp as NodeTypes,c_ as NumberOperation,c$ as OtelDistroName,c9 as OtherEntityTypes,bs as OtherStatus,ai as OtherStatusType,Q as PayloadCollectionKeyTypes,d0 as PlatformType,d1 as PodContainerLifecycleStatus,d2 as PodContainerStatus,d3 as PodPhase,d4 as Profile,cE as ProgrammingLanguages,d5 as SIGNAL_KEY_TO_TYPE,ce as SIGNAL_TYPE_TO_KEY,d6 as SignalKey,G as SignalType,d7 as SortDirection,s as StatusType,d8 as StringOperation,aj as Tier,aR as WorkloadRolloutStatus}from"./chunks/ui-components-B5U474B5.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-D99eCWta.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{cU as ActionCategory,A as ActionKeyTypes,w as ActionType,cV as AddNodeTypes,cW as BooleanOperation,Y as CodeAttributesKeyTypes,bk as Crud,a2 as CustomInstrumentationsKeyTypes,bP as DesiredStateProgress,cX as DestinationTypes,cY as EdgeTypes,ac as EntityTypes,v as FieldTypes,a0 as GolangCustomProbe,_ as HeadersCollectionKeyTypes,m as InputTypes,cZ as InstallationMethod,a3 as InstrumentationRuleType,c_ as IntrumentationStatus,a1 as JavaCustomProbe,c$ as JsonOperation,K as K8sAttributesFrom,cG as K8sResourceKind,d0 as ListDirection,cs as NodeTypes,d1 as NumberOperation,d2 as OtelDistroName,cc as OtherEntityTypes,bu as OtherStatus,an as OtherStatusType,$ as PayloadCollectionKeyTypes,d3 as PlatformType,d4 as PodContainerLifecycleStatus,d5 as PodContainerStatus,d6 as PodPhase,d7 as Profile,cH as ProgrammingLanguages,d8 as SIGNAL_KEY_TO_TYPE,ch as SIGNAL_TYPE_TO_KEY,d9 as SignalKey,Q as SignalType,da as SortDirection,i as StatusType,db as StringOperation,T as Tier,aT as WorkloadRolloutStatus}from"./chunks/ui-components-BliHHDta.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
package/lib/visuals.js CHANGED
@@ -1 +1 @@
1
- export{dT as VISUAL_ODIGOS_LOGO_HEIGHT,dU as VISUAL_ODIGOS_LOGO_WIDTH,V as VisualGreenRings,dV as VisualOdigosLogo}from"./chunks/ui-components-B5U474B5.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-D99eCWta.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{dX as VISUAL_ODIGOS_LOGO_HEIGHT,dY as VISUAL_ODIGOS_LOGO_WIDTH,V as VisualGreenRings,dZ as VisualOdigosLogo}from"./chunks/ui-components-BliHHDta.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odigos/ui-kit",
3
- "version": "0.0.211",
3
+ "version": "0.0.213",
4
4
  "author": "Odigos",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -10,12 +10,12 @@
10
10
  "scripts": {
11
11
  "dev": "storybook dev -p 6006",
12
12
  "prebuild": "rm -rf lib",
13
- "build": "NODE_ENV=production rollup -c --bundleConfigAsCjs",
14
- "build:analyze": "NODE_ENV=production rollup -c --bundleConfigAsCjs && open bundle-analysis.html",
13
+ "build": "NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 rollup -c",
14
+ "build:analyze": "ANALYZE=true NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 rollup -c && open bundle-analysis.html",
15
15
  "build-storybook": "storybook build",
16
- "watch": "rollup -c --bundleConfigAsCjs -w",
17
- "size": "NODE_ENV=production rollup -c --bundleConfigAsCjs --silent",
18
- "lint": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-pattern ./lib --ignore-pattern ./node_modules"
16
+ "watch": "rollup -c -w",
17
+ "size": "NODE_ENV=production rollup -c --silent",
18
+ "lint": "eslint ./src --ext .js,.jsx,.ts,.tsx"
19
19
  },
20
20
  "release": {
21
21
  "branches": [
@@ -100,50 +100,50 @@
100
100
  "peerDependencies": {
101
101
  "react": "19.2.4",
102
102
  "react-dom": "19.2.4",
103
- "styled-components": "6.2.0"
103
+ "styled-components": "6.3.12"
104
104
  },
105
105
  "dependencies": {
106
- "@xyflow/react": "^12.10.1",
106
+ "@xyflow/react": "^12.10.2",
107
107
  "elkjs": "^0.11.1",
108
- "javascript-time-ago": "^2.6.2",
108
+ "javascript-time-ago": "^2.6.4",
109
109
  "lottie-react": "^2.4.1",
110
110
  "prism-react-renderer": "^2.4.1",
111
111
  "react": "19.2.4",
112
112
  "react-dom": "19.2.4",
113
113
  "react-error-boundary": "^6.1.1",
114
- "styled-components": "6.2.0",
115
- "virtua": "^0.48.6",
116
- "zustand": "^5.0.11"
114
+ "styled-components": "6.3.12",
115
+ "virtua": "^0.49.0",
116
+ "zustand": "^5.0.12"
117
117
  },
118
118
  "devDependencies": {
119
119
  "@babel/core": "^7.29.0",
120
- "@babel/preset-env": "^7.29.0",
120
+ "@babel/preset-env": "^7.29.2",
121
121
  "@babel/preset-react": "^7.28.5",
122
122
  "@babel/preset-typescript": "^7.28.5",
123
- "@eslint/eslintrc": "^3.3.4",
124
- "@rollup/plugin-commonjs": "^29.0.0",
123
+ "@eslint/eslintrc": "^3.3.5",
124
+ "@rollup/plugin-commonjs": "^29.0.2",
125
125
  "@rollup/plugin-json": "^6.1.0",
126
126
  "@rollup/plugin-node-resolve": "^16.0.3",
127
- "@rollup/plugin-terser": "^0.4.4",
127
+ "@rollup/plugin-terser": "^1.0.0",
128
128
  "@rollup/plugin-typescript": "^12.3.0",
129
- "@storybook/addon-webpack5-compiler-babel": "^4.0.0",
130
- "@storybook/react-webpack5": "10.2.12",
131
- "@types/node": "^25.3.3",
129
+ "@storybook/addon-webpack5-compiler-babel": "^4.0.1",
130
+ "@storybook/react-webpack5": "10.3.3",
131
+ "@types/node": "^25.5.0",
132
132
  "@types/react": "^19.2.14",
133
133
  "@types/react-dom": "^19.2.3",
134
- "@typescript-eslint/eslint-plugin": "^8.56.1",
135
- "@typescript-eslint/parser": "^8.56.1",
136
- "babel-loader": "^10.0.0",
134
+ "@typescript-eslint/eslint-plugin": "^8.58.0",
135
+ "@typescript-eslint/parser": "^8.58.0",
136
+ "babel-loader": "^10.1.1",
137
137
  "babel-plugin-styled-components": "^2.1.4",
138
- "eslint": "^9.39.2",
138
+ "eslint": "^9.39.4",
139
139
  "eslint-plugin-react": "^7.37.5",
140
- "eslint-plugin-storybook": "10.2.12",
141
- "postcss": "^8.5.6",
142
- "rollup": "^4.57.1",
140
+ "eslint-plugin-storybook": "10.3.3",
141
+ "postcss": "^8.5.8",
142
+ "rollup": "^4.60.1",
143
143
  "rollup-plugin-filesize": "^10.0.0",
144
144
  "rollup-plugin-postcss": "^4.0.2",
145
- "rollup-plugin-visualizer": "^6.0.5",
146
- "storybook": "10.2.12",
145
+ "rollup-plugin-visualizer": "^7.0.1",
146
+ "storybook": "10.3.3",
147
147
  "typescript": "^5.9.3"
148
148
  }
149
149
  }
@@ -1,3 +0,0 @@
1
- import{jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as e}from"react";import i from"styled-components";import{as as a,h as s,j as n,aE as r,aC as c,aw as l,cQ as p,n as m,N as d}from"./ui-components-B5U474B5.js";import{VIcon as u,CopyIcon as f,ChevronUpIcon as h,ChevronDownIcon as y,YamlIcon as b}from"../icons.js";const C=i.div`
2
- padding: 0 12px;
3
- `,j=({title:i="YAML",yaml:j,defaultOpen:k})=>{const{clickCopy:Y,isCopied:g}=a(),[v,x]=o(k??!1),A=e(()=>j?[{id:c(),type:r.Button,buttonProps:{variant:n.Secondary,size:s.S,leftIcon:g?u:f,onClick:()=>Y(j||""),disabled:g}},{id:c(),type:r.Button,buttonProps:{variant:n.Secondary,size:s.S,leftIcon:v?h:y,onClick:()=>x(t=>!t)}}]:[],[j,g,v]);return t(l,{richTitle:{icon:b,title:i},actions:A,children:v&&t(C,{children:j?t(p,{code:j,language:"yaml",theme:"duotoneDark"}):t(m,{children:t(d,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})})})};export{j as Y};