@odigos/ui-kit 0.0.224 → 0.0.226

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 (118) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/DEVELOPMENT.md +27 -0
  3. package/Makefile +7 -0
  4. package/lib/chunks/index-BWi3du_1.js +149 -0
  5. package/lib/chunks/{index-Au62BabI.js → index-BYYemmZD.js} +1 -1
  6. package/lib/chunks/ui-components-B4LvruCJ.js +2620 -0
  7. package/lib/components/_v2/autocomplete/index.d.ts +13 -3
  8. package/lib/components/_v2/cards/data-card/index.d.ts +16 -3
  9. package/lib/components/_v2/condition/index.d.ts +13 -0
  10. package/lib/components/_v2/conditions/index.d.ts +8 -0
  11. package/lib/components/_v2/drawer/header/index.d.ts +8 -1
  12. package/lib/components/_v2/drop-data/index.d.ts +2 -0
  13. package/lib/components/_v2/icon-button/index.d.ts +1 -0
  14. package/lib/components/_v2/index.d.ts +3 -0
  15. package/lib/components/_v2/tag/index.d.ts +2 -1
  16. package/lib/components/_v2/time-input/index.d.ts +24 -0
  17. package/lib/components/v2.js +1 -1
  18. package/lib/components.js +1 -1
  19. package/lib/constants/sampling/index.d.ts +9 -4
  20. package/lib/constants/sources/index.d.ts +1 -0
  21. package/lib/constants.js +1 -1
  22. package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +1 -1
  23. package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +3 -1
  24. package/lib/containers/_v2/_drawers/edit-action-drawer/helpers.d.ts +12 -0
  25. package/lib/containers/_v2/_drawers/edit-action-drawer/index.d.ts +9 -0
  26. package/lib/containers/_v2/_drawers/edit-destination-drawer/helpers.d.ts +11 -0
  27. package/lib/containers/_v2/_drawers/edit-destination-drawer/index.d.ts +11 -0
  28. package/lib/containers/_v2/_drawers/edit-rule-drawer/helpers.d.ts +13 -0
  29. package/lib/containers/_v2/_drawers/edit-rule-drawer/index.d.ts +9 -0
  30. package/lib/containers/_v2/_drawers/index.d.ts +4 -5
  31. package/lib/containers/_v2/_drawers/sampling-rule-drawer/index.d.ts +50 -0
  32. package/lib/containers/_v2/_forms/add-action-form/index.d.ts +0 -1
  33. package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +8 -4
  34. package/lib/containers/_v2/_forms/add-rule-form/index.d.ts +0 -1
  35. package/lib/containers/_v2/_forms/index.d.ts +1 -6
  36. package/lib/containers/_v2/_forms/sampling-rule-form/index.d.ts +2 -0
  37. package/lib/containers/_v2/onboarding/summary/index.d.ts +1 -1
  38. package/lib/containers/_v2/sampling-rules/converters.d.ts +9 -0
  39. package/lib/containers/_v2/sampling-rules/helpers.d.ts +2 -2
  40. package/lib/containers/_v2/sampling-rules/rules-table/index.d.ts +1 -1
  41. package/lib/containers/_v2/sampling-rules/toolbar/index.d.ts +1 -1
  42. package/lib/containers/_v2/sampling-rules/types.d.ts +1 -42
  43. package/lib/containers/source-drawer/profiling/index.d.ts +1 -1
  44. package/lib/containers/v2.js +62 -199
  45. package/lib/containers.js +48 -48
  46. package/lib/contexts/action-form-context.d.ts +19 -0
  47. package/lib/{containers/_v2/_forms/add-destination-form/context.d.ts → contexts/destination-form-context.d.ts} +5 -4
  48. package/lib/contexts/index.d.ts +5 -0
  49. package/lib/contexts/rule-form-context.d.ts +19 -0
  50. package/lib/contexts/sampling-rules-form-context.d.ts +90 -0
  51. package/lib/contexts/source-instrument-form-context.d.ts +22 -0
  52. package/lib/contexts.js +1 -1
  53. package/lib/functions/get-status-color/index.d.ts +2 -2
  54. package/lib/functions/get-status-icon/index.d.ts +2 -2
  55. package/lib/functions.js +1 -1
  56. package/lib/hooks/useScrollTo.d.ts +1 -0
  57. package/lib/hooks.js +1 -1
  58. package/lib/snippets/_v2/colored-span/index.d.ts +1 -0
  59. package/lib/snippets/_v2/dynamic-field/index.d.ts +3 -1
  60. package/lib/snippets/_v2/index.d.ts +1 -0
  61. package/lib/snippets/_v2/sampling-rule-form-sections/duration-errors.d.ts +13 -0
  62. package/lib/snippets/_v2/sampling-rule-form-sections/index.d.ts +7 -0
  63. package/lib/snippets/_v2/sampling-rule-form-sections/operation.d.ts +12 -0
  64. package/lib/snippets/_v2/sampling-rule-form-sections/percentage.d.ts +12 -0
  65. package/lib/snippets/_v2/sampling-rule-form-sections/preset-with-custom-input.d.ts +29 -0
  66. package/lib/snippets/_v2/sampling-rule-form-sections/rule-info.d.ts +12 -0
  67. package/lib/snippets/_v2/sampling-rule-form-sections/sampling-preview.d.ts +12 -0
  68. package/lib/{containers/_v2/_forms/create-sampling-rule-form/sections → snippets/_v2/sampling-rule-form-sections}/source-scope.d.ts +8 -4
  69. package/lib/snippets/_v2/sampling-rule-form-sections/styled.d.ts +2 -0
  70. package/lib/snippets/v2.js +1 -53
  71. package/lib/snippets.js +1 -1
  72. package/lib/store.js +1 -1
  73. package/lib/theme.js +1 -1
  74. package/lib/types/common/index.d.ts +2 -1
  75. package/lib/types/enum/index.d.ts +1 -0
  76. package/lib/types/sampling.d.ts +77 -0
  77. package/lib/types/sources/index.d.ts +18 -6
  78. package/lib/types.js +1 -1
  79. package/lib/visuals.js +1 -1
  80. package/package.json +1 -1
  81. package/lib/chunks/ui-components-CI2PiWkX.js +0 -2516
  82. package/lib/components/_v2/cards/section-part-card/index.d.ts +0 -11
  83. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/index.d.ts +0 -20
  84. package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/index.d.ts +0 -9
  85. package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/index.d.ts +0 -9
  86. package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/index.d.ts +0 -8
  87. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/index.d.ts +0 -21
  88. package/lib/containers/_v2/_forms/add-action-form/context.d.ts +0 -18
  89. package/lib/containers/_v2/_forms/add-rule-form/context.d.ts +0 -18
  90. package/lib/containers/_v2/_forms/add-source-form/context.d.ts +0 -21
  91. package/lib/containers/_v2/_forms/add-source-form/index.d.ts +0 -1
  92. package/lib/containers/_v2/_forms/create-sampling-rule-form/context.d.ts +0 -34
  93. package/lib/containers/_v2/_forms/create-sampling-rule-form/converters.d.ts +0 -5
  94. package/lib/containers/_v2/_forms/create-sampling-rule-form/form-helpers.d.ts +0 -5
  95. package/lib/containers/_v2/_forms/create-sampling-rule-form/index.d.ts +0 -3
  96. package/lib/containers/_v2/_forms/create-sampling-rule-form/sections/duration-errors.d.ts +0 -9
  97. package/lib/containers/_v2/_forms/create-sampling-rule-form/sections/operation.d.ts +0 -9
  98. package/lib/containers/_v2/_forms/create-sampling-rule-form/sections/percentage.d.ts +0 -9
  99. package/lib/containers/_v2/_forms/create-sampling-rule-form/sections/rule-info.d.ts +0 -9
  100. package/lib/containers/_v2/_forms/create-sampling-rule-form/sections/sampling-preview.d.ts +0 -9
  101. package/lib/containers/_v2/_forms/create-sampling-rule-form/styled.d.ts +0 -5
  102. package/lib/containers/_v2/_forms/create-sampling-rule-form/types.d.ts +0 -54
  103. package/lib/containers/_v2/_forms/edit-auto-rule-form/context.d.ts +0 -21
  104. package/lib/containers/_v2/_forms/edit-auto-rule-form/index.d.ts +0 -3
  105. package/lib/containers/_v2/_forms/edit-cost-reduction-auto-rule-form/context.d.ts +0 -21
  106. package/lib/containers/_v2/_forms/edit-cost-reduction-auto-rule-form/index.d.ts +0 -3
  107. package/lib/containers/_v2/_forms/edit-highly-relevant-auto-rule-form/context.d.ts +0 -14
  108. package/lib/containers/_v2/_forms/edit-highly-relevant-auto-rule-form/index.d.ts +0 -3
  109. package/lib/containers/_v2/_forms/view-sampling-rule-form/context.d.ts +0 -37
  110. package/lib/containers/_v2/_forms/view-sampling-rule-form/index.d.ts +0 -3
  111. package/lib/containers/_v2/_forms/view-sampling-rule-form/reverse-converters.d.ts +0 -3
  112. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/duration-errors.d.ts +0 -6
  113. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/operation-details.d.ts +0 -6
  114. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/percentage.d.ts +0 -6
  115. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/rule-info.d.ts +0 -6
  116. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/sampling-preview.d.ts +0 -6
  117. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/source-scopes.d.ts +0 -6
  118. /package/lib/containers/_v2/{_forms/view-sampling-rule-form/footer.d.ts → _drawers/sampling-rule-drawer/view-footer.d.ts} +0 -0
@@ -14,14 +14,26 @@ export interface PersistSourceInput {
14
14
  export type PersistSourcesFunc = (payload: PersistSourceInput) => Promise<{
15
15
  error?: string;
16
16
  } | undefined>;
17
+ export interface SourceContainerRuntimeInfo {
18
+ language: ProgrammingLanguages;
19
+ runtimeVersion: string | null;
20
+ }
21
+ export interface SourceContainerAgentEnabled {
22
+ agentEnabled: boolean;
23
+ agentEnabledStatus: {
24
+ message: string;
25
+ };
26
+ otelDistroName: OtelDistroName | null;
27
+ }
28
+ export interface SourceContainerOverrides {
29
+ containerName: string;
30
+ runtimeInfo: SourceContainerRuntimeInfo | null;
31
+ }
17
32
  export interface SourceContainer {
18
33
  containerName: string;
19
- language: ProgrammingLanguages;
20
- runtimeVersion: string;
21
- overriden?: boolean;
22
- instrumented: boolean;
23
- instrumentationMessage: string;
24
- otelDistroName?: OtelDistroName | null;
34
+ runtimeInfo: SourceContainerRuntimeInfo | null;
35
+ agentEnabled: SourceContainerAgentEnabled | null;
36
+ overrides: SourceContainerOverrides | null;
25
37
  }
26
38
  export interface Source extends WorkloadId {
27
39
  selected: boolean;
package/lib/types.js CHANGED
@@ -1 +1 @@
1
- export{eo as ActionCategory,f as ActionKeyTypes,s as ActionType,ep as AddNodeTypes,eq as BooleanOperation,U as CodeAttributesKeyTypes,cK as Crud,_ as CustomInstrumentationsKeyTypes,dd as DesiredStateProgress,er as DestinationTypes,es as EdgeTypes,aa as EntityTypes,r as FieldTypes,Y as GolangCustomProbe,W as HeadersCollectionKeyTypes,k as InputTypes,et as InstallationMethod,$ as InstrumentationRuleType,eu as IntrumentationStatus,Z as JavaCustomProbe,ev as JsonOperation,K as K8sAttributesFrom,eb as K8sResourceKind,ew as ListDirection,dX as NodeTypes,ex as NumberOperation,ey as OtelDistroName,dH as OtherEntityTypes,cU as OtherStatus,bm as OtherStatusType,X as PayloadCollectionKeyTypes,ez as PlatformType,eA as PodContainerLifecycleStatus,eB as PodContainerStatus,eC as PodPhase,eD as Profile,aH as ProgrammingLanguages,eE as SIGNAL_KEY_TO_TYPE,dM as SIGNAL_TYPE_TO_KEY,eF as SignalKey,J as SignalType,eG as SortDirection,Q as StatusType,eH as StringOperation,a9 as Tier,c2 as WorkloadRolloutStatus}from"./chunks/ui-components-CI2PiWkX.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";
1
+ export{f3 as ActionCategory,c as ActionKeyTypes,p as ActionType,f4 as AddNodeTypes,f5 as BooleanOperation,M as CodeAttributesKeyTypes,cB as Crud,V as CustomInstrumentationsKeyTypes,d4 as DesiredStateProgress,f6 as DestinationTypes,f7 as EdgeTypes,aC as EntityTypes,o as FieldTypes,R as GolangCustomProbe,P as HeadersCollectionKeyTypes,h as InputTypes,f8 as InstallationMethod,W as InstrumentationRuleType,f9 as IntrumentationStatus,U as JavaCustomProbe,fa as JsonOperation,K as K8sAttributesFrom,dZ as K8sResourceKind,fb as ListDirection,dI as NodeTypes,fc as NumberOperation,fd as OtelDistroName,dv as OtherEntityTypes,cL as OtherStatus,au as OtherStatusType,Q as PayloadCollectionKeyTypes,fe as PlatformType,ff as PodContainerLifecycleStatus,fg as PodContainerStatus,fh as PodPhase,fi as Profile,dO as ProgrammingLanguages,fj as SIGNAL_KEY_TO_TYPE,dy as SIGNAL_TYPE_TO_KEY,fk as SignalKey,G as SignalType,fl as SortDirection,E as StatusType,fm as StringOperation,av as Tier,bE as WorkloadRolloutStatus}from"./chunks/ui-components-B4LvruCJ.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";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{fr as VISUAL_ODIGOS_LOGO_HEIGHT,fs as VISUAL_ODIGOS_LOGO_WIDTH,en as VisualGreenRings,ft as VisualOdigosLogo}from"./chunks/ui-components-CI2PiWkX.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";
1
+ export{fn as VISUAL_ODIGOS_LOGO_HEIGHT,fo as VISUAL_ODIGOS_LOGO_WIDTH,f2 as VisualGreenRings,fp as VisualOdigosLogo}from"./chunks/ui-components-B4LvruCJ.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";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.224",
3
+ "version": "0.0.226",
4
4
  "author": "Odigos",
5
5
  "license": "MIT",
6
6
  "repository": {