@odigos/ui-kit 0.0.298 → 0.0.299

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.
@@ -1,4 +1,4 @@
1
- import { type Recommendation, type RecommendationRemediationType, type RecommendationType } from '../../../types';
1
+ import { type Recommendation } from '../../../types';
2
2
  import type { GetRecommendationsData, OperationContext, OdigosApiOperations } from '../types';
3
3
  export interface UseRecommendationsResult {
4
4
  /** Recommendations for the cluster. Empty array until the request resolves. */
@@ -25,7 +25,7 @@ export interface RecommendationsApi {
25
25
  error?: string;
26
26
  } | undefined>;
27
27
  /** Applies a catalog remediation whose steps are executed by the backend. */
28
- applyRemediation?: (recommendationType: RecommendationType, remediationType: RecommendationRemediationType) => Promise<{
28
+ applyRemediation?: (recommendationType: string, remediationType: string) => Promise<{
29
29
  error?: string;
30
30
  } | undefined>;
31
31
  }
@@ -18,7 +18,7 @@ import type { ReactNode } from 'react';
18
18
  import type { DocumentNode } from '@apollo/client';
19
19
  import type { InstrumentationRuleInputWire } from '../../functions/instrumentation-rule-source-scopes';
20
20
  import type { ApolloClient, ApolloLink, FetchPolicy, MutationFetchPolicy, TypePolicies, WatchQueryFetchPolicy } from '@apollo/client';
21
- import type { Action, ActionFormData, AllClusterSnapshots, ClusterSnapshot, ConfigYaml, CostReductionRule, CostReductionRuleInput, DataStream, DescribeOdigos, DescribeSource, Destination, DestinationFormData, DiagnoseFormData, EffectiveConfig, EffectiveConfigInput, EnableProfilingResult, ExtendedPodInfo, FetchedConfig, GatewayInfo, GetActionTypesResult, GetInstrumentationRuleTypesResult, GetDestinationCategoriesResult, GetPotentialDestinationsResult, GetProfileHotFunctionsVars, HighlyRelevantOperationRule, HighlyRelevantOperationRuleInput, HotFunctionsResult, InsightsAnomalyIssue, InsightsAnomalyRefInput, InsightsAnomalyResolution, InsightsAnomalySummary, InsightsBaselineClass, InsightsBulkDeleteResult, InsightsBulkPromoteResult, InsightsBulkResolution, InsightsBulkResolveResult, InsightsCatalog, InsightsDeviationClass, InsightsFinding, InsightsFindingKind, InsightsGuardrail, InsightsGuardrailInput, InsightsGuardrailSeedInput, InsightsGuardrailViolation, InsightsGuardrailViolationDetail, InsightsLearningPolicy, InsightsLearningPolicyInput, InsightsObservation, InsightsObservationSummary, InsightsPolicy, InsightsPolicyInput, InsightsPolicyScope, InsightsPromoteResult, InsightsSampleReason, InsightsServiceStat, InsightsServiceProfile, InsightsBlastRadiusSubgraph, InsightsStorageHealth, InsightsSystemSettings, InsightsSystemSettingsInput, InsightsTransaction, InsightsTransactionKind, InsightsTransactionStat, InsightsViolationActionInput, InstrumentationInstructions, InstrumentationRule, K8sResourceKind, LocalUiConfigInput, Metrics, Namespace, NoisyOperationRule, NoisyOperationRuleInput, NodeCollectoInfo, PlatformType, PodInfo, ProfilingSlots, SourceProfilingVars, Recommendation, RecommendationRemediationType, RecommendationType, SamplingRules, SamplingRulesK8sHealthConfig, ServiceMapSources, SourceFormData, SourceProfilingResult, TestConnectionResponse, Tier, TokenPayload, Workload, WorkloadId, PeerSources } from '../../types';
21
+ import type { Action, ActionFormData, AllClusterSnapshots, ClusterSnapshot, ConfigYaml, CostReductionRule, CostReductionRuleInput, DataStream, DescribeOdigos, DescribeSource, Destination, DestinationFormData, DiagnoseFormData, EffectiveConfig, EffectiveConfigInput, EnableProfilingResult, ExtendedPodInfo, FetchedConfig, GatewayInfo, GetActionTypesResult, GetInstrumentationRuleTypesResult, GetDestinationCategoriesResult, GetPotentialDestinationsResult, GetProfileHotFunctionsVars, HighlyRelevantOperationRule, HighlyRelevantOperationRuleInput, HotFunctionsResult, InsightsAnomalyIssue, InsightsAnomalyRefInput, InsightsAnomalyResolution, InsightsAnomalySummary, InsightsBaselineClass, InsightsBulkDeleteResult, InsightsBulkPromoteResult, InsightsBulkResolution, InsightsBulkResolveResult, InsightsCatalog, InsightsDeviationClass, InsightsFinding, InsightsFindingKind, InsightsGuardrail, InsightsGuardrailInput, InsightsGuardrailSeedInput, InsightsGuardrailViolation, InsightsGuardrailViolationDetail, InsightsLearningPolicy, InsightsLearningPolicyInput, InsightsObservation, InsightsObservationSummary, InsightsPolicy, InsightsPolicyInput, InsightsPolicyScope, InsightsPromoteResult, InsightsSampleReason, InsightsServiceStat, InsightsServiceProfile, InsightsBlastRadiusSubgraph, InsightsStorageHealth, InsightsSystemSettings, InsightsSystemSettingsInput, InsightsTransaction, InsightsTransactionKind, InsightsTransactionStat, InsightsViolationActionInput, InstrumentationInstructions, InstrumentationRule, K8sResourceKind, LocalUiConfigInput, Metrics, Namespace, NoisyOperationRule, NoisyOperationRuleInput, NodeCollectoInfo, PlatformType, PodInfo, ProfilingSlots, SourceProfilingVars, Recommendation, SamplingRules, SamplingRulesK8sHealthConfig, ServiceMapSources, SourceFormData, SourceProfilingResult, TestConnectionResponse, Tier, TokenPayload, Workload, WorkloadId, PeerSources } from '../../types';
22
22
  /**
23
23
  * The execution context for a given operation, propagated through every
24
24
  * `Operation.document(ctx)` / `transformVariables(vars, ctx)` /
@@ -893,8 +893,8 @@ export interface SetRecommendationDismissedResult {
893
893
  setRecommendationDismissed: Recommendation;
894
894
  }
895
895
  export interface ApplyRecommendationRemediationVars {
896
- recommendationType: RecommendationType;
897
- remediationType: RecommendationRemediationType;
896
+ recommendationType: string;
897
+ remediationType: string;
898
898
  }
899
899
  export interface ApplyRecommendationRemediationResult {
900
900
  applyRecommendationRemediation: boolean;
package/lib/contexts.js CHANGED
@@ -1 +1 @@
1
- import{u as a,r as P,a as T}from"./chunks/source-instrument-form-context-Be_f9jmB.js";export{A as ActionFormContextProvider,C as CloudConnectorFormContextProvider,D as DataStreamFormContextProvider,b as DestinationFormContextProvider,c as DetectionOverrideFormContextProvider,d as DetectionPolicyFormContextProvider,G as GuardrailFormContextProvider,L as LearningOverrideFormContextProvider,e as LearningPolicyFormContextProvider,O as OdigosApiConnectionsScope,f as OdigosApiProvider,R as RuleFormContextProvider,S as SamplingRuleFormType,g as SamplingRulesFormProvider,h as SourceEditFormContextProvider,i as SourceInstrumentFormContextProvider,j as SystemSettingsFormContextProvider,p as prepareNamespacePayloads,k as prepareSourcePayloads,l as useActionFormContext,m as useApiLazyQuery,n as useApiMutation,o as useApiQuery,q as useCloudConnectorFormContext,s as useDataStreamFormContext,t as useDestinationFormContext,v as useDetectionOverrideFormContext,w as useDetectionPolicyFormContext,x as useGuardrailFormContext,y as useLearningOverrideFormContext,z as useLearningPolicyFormContext,B as useOdigosApi,E as useRuleFormContext,F as useSamplingRulesFormContext,H as useSourceEditFormContext,I as useSourceInstrumentFormContext,J as useSystemSettingsFormContext}from"./chunks/source-instrument-form-context-Be_f9jmB.js";export{O as OdigosProvider,c as checkVersionSupport,r as resolveMinSupportedVersion,u as useOdigos}from"./chunks/helpers-DIbaWh5d.js";import{jsx as _}from"react/jsx-runtime";import{useMemo as M,useContext as N,createContext as V}from"react";import{P as U,t as $}from"./chunks/ui-components-mqa1Nv5H.js";import{useApolloClient as K}from"@apollo/client/react";import"@apollo/client/link/error";import"@apollo/client/link/context";import"@apollo/client/utilities";import"@apollo/client/errors";import"@apollo/client";import"styled-components";import"./icons.js";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";const Q=()=>{const o=K(),{operations:r,context:e}=a();return{multiFetch:async(t,n,s)=>{const i=r[t];return i?T(o,i,n,s,e):{results:[],allSucceeded:!1,anySucceeded:!1,successCount:0,failureCount:n.length,error:`Operation ${String(t)} not configured`}},bulkPersistSources:async(t,n)=>{const s=[];for(const i of t){const t={...e,proxyID:i},{error:a}=await P(o,r.PERSIST_SOURCES,n,t);a&&s.push(`${i}: ${a}`)}return s.length?{error:s.join(", ")}:void 0},applyConfigurations:async(t,n)=>{if(!r.UPDATE_REMOTE_CONFIG)return{error:"UPDATE_REMOTE_CONFIG not configured"};if(!t.length)return{error:"No connections selected"};const s={formData:n,connectionIds:t},i=r.UPDATE_REMOTE_CONFIG;let a;return 1===t.length?({error:a}=await P(o,i,s,e)):({error:a}=await T(o,i,t,s,e)),a?{error:a}:void 0}}},W=(o,r)=>o.platformType===U.K8s?r.K8s:[U.Vm,U.Connector,U.AwsEcs].includes(o.platformType)?r.Vm:void 0,X=o=>r=>{const e=o[r.platformType];if(!e)return;const t=Object.keys(e);if(0===t.length)return;const n=$(r.schemaVersion??r.version),s=[...t].sort((o,r)=>$(r)-$(o)).find(o=>n>=$(o));return s?e[s]:void 0},Y=(o,r)=>{const e={};for(const t of Object.keys(o))e[t]=r(o[t]);return e},Z=V({formType:void 0}),oo=({children:o,formType:r})=>{const e=M(()=>({formType:r}),[r]);return _(Z.Provider,{value:e,children:o})},ro=()=>N(Z);export{oo as StorybookProvider,W as pickByPlatform,Q as useApiForConnections,ro as useStorybook,X as versionedDocument,Y as vmDialectMap};
1
+ import{u as a,r as P,a as T}from"./chunks/source-instrument-form-context-D3jXhnvh.js";export{A as ActionFormContextProvider,C as CloudConnectorFormContextProvider,D as DataStreamFormContextProvider,b as DestinationFormContextProvider,c as DetectionOverrideFormContextProvider,d as DetectionPolicyFormContextProvider,G as GuardrailFormContextProvider,L as LearningOverrideFormContextProvider,e as LearningPolicyFormContextProvider,O as OdigosApiConnectionsScope,f as OdigosApiProvider,R as RuleFormContextProvider,S as SamplingRuleFormType,g as SamplingRulesFormProvider,h as SourceEditFormContextProvider,i as SourceInstrumentFormContextProvider,j as SystemSettingsFormContextProvider,p as prepareNamespacePayloads,k as prepareSourcePayloads,l as useActionFormContext,m as useApiLazyQuery,n as useApiMutation,o as useApiQuery,q as useCloudConnectorFormContext,s as useDataStreamFormContext,t as useDestinationFormContext,v as useDetectionOverrideFormContext,w as useDetectionPolicyFormContext,x as useGuardrailFormContext,y as useLearningOverrideFormContext,z as useLearningPolicyFormContext,B as useOdigosApi,E as useRuleFormContext,F as useSamplingRulesFormContext,H as useSourceEditFormContext,I as useSourceInstrumentFormContext,J as useSystemSettingsFormContext}from"./chunks/source-instrument-form-context-D3jXhnvh.js";export{O as OdigosProvider,c as checkVersionSupport,r as resolveMinSupportedVersion,u as useOdigos}from"./chunks/helpers-lW-r7stw.js";import{jsx as _}from"react/jsx-runtime";import{useMemo as M,useContext as N,createContext as V}from"react";import{P as U,t as $}from"./chunks/ui-components-BnY4B3Vq.js";import{useApolloClient as K}from"@apollo/client/react";import"@apollo/client/link/error";import"@apollo/client/link/context";import"@apollo/client/utilities";import"@apollo/client/errors";import"@apollo/client";import"styled-components";import"./icons.js";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";const Q=()=>{const o=K(),{operations:r,context:e}=a();return{multiFetch:async(t,n,s)=>{const i=r[t];return i?T(o,i,n,s,e):{results:[],allSucceeded:!1,anySucceeded:!1,successCount:0,failureCount:n.length,error:`Operation ${String(t)} not configured`}},bulkPersistSources:async(t,n)=>{const s=[];for(const i of t){const t={...e,proxyID:i},{error:a}=await P(o,r.PERSIST_SOURCES,n,t);a&&s.push(`${i}: ${a}`)}return s.length?{error:s.join(", ")}:void 0},applyConfigurations:async(t,n)=>{if(!r.UPDATE_REMOTE_CONFIG)return{error:"UPDATE_REMOTE_CONFIG not configured"};if(!t.length)return{error:"No connections selected"};const s={formData:n,connectionIds:t},i=r.UPDATE_REMOTE_CONFIG;let a;return 1===t.length?({error:a}=await P(o,i,s,e)):({error:a}=await T(o,i,t,s,e)),a?{error:a}:void 0}}},W=(o,r)=>o.platformType===U.K8s?r.K8s:[U.Vm,U.Connector,U.AwsEcs].includes(o.platformType)?r.Vm:void 0,X=o=>r=>{const e=o[r.platformType];if(!e)return;const t=Object.keys(e);if(0===t.length)return;const n=$(r.schemaVersion??r.version),s=[...t].sort((o,r)=>$(r)-$(o)).find(o=>n>=$(o));return s?e[s]:void 0},Y=(o,r)=>{const e={};for(const t of Object.keys(o))e[t]=r(o[t]);return e},Z=V({formType:void 0}),oo=({children:o,formType:r})=>{const e=M(()=>({formType:r}),[r]);return _(Z.Provider,{value:e,children:o})},ro=()=>N(Z);export{oo as StorybookProvider,W as pickByPlatform,Q as useApiForConnections,ro as useStorybook,X as versionedDocument,Y as vmDialectMap};
package/lib/functions.js CHANGED
@@ -1 +1 @@
1
- export{bv as adaptInstrumentationRuleFromWire,bt as adaptInstrumentationRuleInputForWire,eG as buildBadgeForDesiredStatus,li as buildCatalogFieldsDataCard,ew as buildCatalogFieldsSegments,lj as capitalizeFirstLetter,lk as cleanObjectEmptyStringsValues,a9 as compareCondition,ll as decimalsOnly,b3 as deepClone,jD as entityIdKey,jI as filterActions,jH as filterDestinations,eA as filterDestinationsByStream,jG as filterSources,jt as filterSourcesByStream,iK as findSourceByService,lm as flattenObjectKeys,eU as formatBytes,iV as formatDuration,b9 as generateId,jA as getActionConditions,ey as getActionIcon,jB as getConditionsBooleans,fa as getContainersIcons,ln as getContainersInstrumentedCount,lo as getDeepValue,eo as getDestinationIcon,lp as getDetectedLanguageIcons,eL as getEffectiveLanguage,f0 as getEffectiveRuntimeVersion,jE as getEntityIcon,bo as getEntityId,jz as getEntityIdKey,jC as getEntityLabel,lq as getHealthBadgeLabel,bk as getIdFromSseTarget,eC as getInstrumentationRuleIcon,lr as getMainContainerLanguage,ls as getMetricForEntity,lt as getMonitorIcon,lu as getNearestTypographySize,f9 as getPlatformIcon,iH as getPlatformLabel,$ as getProgrammingLanguageIcon,lv as getRecursiveValues,eT as getSourceKindLabel,eQ as getSourceLanguageIcons,bd as getSseTargetFromId,e_ as getStatusColor,jK as getStatusFromPodStatus,e$ as getStatusIcon,eV as getStatusTypeFromOdigosHealth,lw as getValueForRange,eP as getVirtualServiceIcon,eO as getWorkloadId,eB as getYamlFieldsForDestination,lx as hasUnhealthyInstances,ly as instrumentationRuleSourceScopesFromWire,lz as instrumentationRuleSourceScopesToWire,bA as isEmpty,bB as isLegalK8sLabel,hq as isOverTime,lA as isStringABoolean,lB as isTimeElapsed,eZ as isValidVersion,lC as mapConditions,eI as mapDesiredStatusToConditionStatus,eu as mapDesiredStatusesToConditions,ez as mapDestinationFieldsForDisplay,bF as mapExportedSignals,bD as mapSupportedSignals,lD as numbersOnly,lE as parseBooleanFromString,lF as parseJsonStringToPrettyString,iX as parseRawOtlp,cd as prepareDestinationFormData,lG as removeEmptyValuesFromObject,E as safeJsonParse,lH as safeJsonStringify,lI as setDeepValue,lJ as sleep,an as splitCamelString,lK as stringifyNonStringValues,t as trimVersion}from"./chunks/ui-components-mqa1Nv5H.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
1
+ export{bv as adaptInstrumentationRuleFromWire,bt as adaptInstrumentationRuleInputForWire,eG as buildBadgeForDesiredStatus,lq as buildCatalogFieldsDataCard,ew as buildCatalogFieldsSegments,lr as capitalizeFirstLetter,ls as cleanObjectEmptyStringsValues,a9 as compareCondition,lt as decimalsOnly,b3 as deepClone,jE as entityIdKey,jJ as filterActions,jI as filterDestinations,eA as filterDestinationsByStream,jH as filterSources,ju as filterSourcesByStream,iL as findSourceByService,lu as flattenObjectKeys,eU as formatBytes,iW as formatDuration,b9 as generateId,jB as getActionConditions,ey as getActionIcon,jC as getConditionsBooleans,fa as getContainersIcons,lv as getContainersInstrumentedCount,lw as getDeepValue,eo as getDestinationIcon,lx as getDetectedLanguageIcons,eL as getEffectiveLanguage,f0 as getEffectiveRuntimeVersion,jF as getEntityIcon,bo as getEntityId,jA as getEntityIdKey,jD as getEntityLabel,ly as getHealthBadgeLabel,bk as getIdFromSseTarget,eC as getInstrumentationRuleIcon,lz as getMainContainerLanguage,lA as getMetricForEntity,lB as getMonitorIcon,lC as getNearestTypographySize,f9 as getPlatformIcon,iI as getPlatformLabel,$ as getProgrammingLanguageIcon,lD as getRecursiveValues,eT as getSourceKindLabel,eQ as getSourceLanguageIcons,bd as getSseTargetFromId,e_ as getStatusColor,jL as getStatusFromPodStatus,e$ as getStatusIcon,eV as getStatusTypeFromOdigosHealth,lE as getValueForRange,eP as getVirtualServiceIcon,eO as getWorkloadId,eB as getYamlFieldsForDestination,lF as hasUnhealthyInstances,lG as instrumentationRuleSourceScopesFromWire,lH as instrumentationRuleSourceScopesToWire,bA as isEmpty,bB as isLegalK8sLabel,hr as isOverTime,lI as isStringABoolean,lJ as isTimeElapsed,eZ as isValidVersion,lK as mapConditions,eI as mapDesiredStatusToConditionStatus,eu as mapDesiredStatusesToConditions,ez as mapDestinationFieldsForDisplay,bF as mapExportedSignals,bD as mapSupportedSignals,lL as numbersOnly,lM as parseBooleanFromString,lN as parseJsonStringToPrettyString,iY as parseRawOtlp,cd as prepareDestinationFormData,lO as removeEmptyValuesFromObject,E as safeJsonParse,lP as safeJsonStringify,lQ as setDeepValue,lR as sleep,an as splitCamelString,lS as stringifyNonStringValues,t as trimVersion}from"./chunks/ui-components-BnY4B3Vq.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
package/lib/hooks.js CHANGED
@@ -1 +1 @@
1
- export{nx as IGNORE_OUTSIDE_CLICK_ATTR,dc as PopupAlignX,hr as PopupAlignY,iR as formatDurationMinutes,ny as formatDurationMs,nz as isInsideIgnoredPortal,nA as useActionFormData,nB as useAnchoredPopup,nC as useBodyScroll,jF as useContainerSize,b8 as useCopy,nD as useDataStreamFormData,nE as useDestinationFormData,u as useFullscreen,bw as useGenericForm,nF as useInstrumentationRuleFormData,hp as useKeyDown,eW as useOnClickOutside,nG as useOverflow,nH as usePopup,eF as useScrollIntoViewWhen,k0 as useScrollTo,jw as useSessionStorage,nI as useSourceFormData,eD as useTimeAgo}from"./chunks/ui-components-mqa1Nv5H.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
1
+ export{nF as IGNORE_OUTSIDE_CLICK_ATTR,dc as PopupAlignX,hs as PopupAlignY,iS as formatDurationMinutes,nG as formatDurationMs,nH as isInsideIgnoredPortal,nI as useActionFormData,nJ as useAnchoredPopup,nK as useBodyScroll,jG as useContainerSize,b8 as useCopy,nL as useDataStreamFormData,nM as useDestinationFormData,u as useFullscreen,bw as useGenericForm,nN as useInstrumentationRuleFormData,hq as useKeyDown,eW as useOnClickOutside,nO as useOverflow,nP as usePopup,eF as useScrollIntoViewWhen,k1 as useScrollTo,jx as useSessionStorage,nQ as useSourceFormData,eD as useTimeAgo}from"./chunks/ui-components-BnY4B3Vq.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
@@ -27,6 +27,8 @@ interface EditableSourceScopeProps {
27
27
  disabled?: boolean;
28
28
  hideLogicNote?: boolean;
29
29
  hideEntireClusterNote?: boolean;
30
+ /** Hide the Entire Cluster segment option (e.g. when the parent flow already chose a specific scope). */
31
+ hideEntireClusterOption?: boolean;
30
32
  entireClusterWarningMessage?: string;
31
33
  /** Initial segment tab when no scope filters are selected yet. Defaults to entire cluster. */
32
34
  defaultScopeTab?: ScopeTab;
package/lib/snippets.js CHANGED
@@ -1 +1 @@
1
- export{A as ActionType,a as Actions,R as RichTitle}from"./chunks/ui-components-mqa1Nv5H.js";export{A as AnimatedCollapse,a as AnimatedGraphEdge,b as AutoFitView,B as BlastRadius,C as CancelModal,c as ConnectorCreatedModal,D as DEFAULT_GRAPH_FIT_VIEW_OPTIONS,d as DURATION_OPTIONS,e as DeleteModal,f as DurationErrorsSection,g as DynamicActionFields,h as DynamicField,i as DynamicFields,E as EnableDisableSegment,G as GRAPH_FLOW_ANIMATED_EDGE,j as GraphFlow,k as GraphFlowComponent,I as InstrumentationPreviewSection,N as NOISY_PERCENTAGE_OPTIONS,O as OdigosLogoTextByTier,l as OperationSection,P as PERCENTAGE_OPTIONS,m as PercentageSection,n as PresetWithCustomInput,R as RuleInfoSection,o as RuleTypeSection,S as SamplingPreviewSection,p as SignalsCheckboxList,q as SourceScopeSection,U as UpgradeModal,W as WIDE_DRAWER_WIDTH,r as WideDrawer,Y as YamlSectionCard,s as getElkLayoutedElements,t as getGraphEdgePath}from"./chunks/index-BbgCENJM.js";export{C as ColoredSpan,a as ColoredSpanVariant}from"./chunks/helpers-DIbaWh5d.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";import"elkjs/lib/elk.bundled.js";import"@xyflow/react";import"@xyflow/react/dist/style.css";
1
+ export{A as ActionType,a as Actions,R as RichTitle}from"./chunks/ui-components-BnY4B3Vq.js";export{A as AnimatedCollapse,a as AnimatedGraphEdge,b as AutoFitView,B as BlastRadius,C as CancelModal,c as ConnectorCreatedModal,D as DEFAULT_GRAPH_FIT_VIEW_OPTIONS,d as DURATION_OPTIONS,e as DeleteModal,f as DurationErrorsSection,g as DynamicActionFields,h as DynamicField,i as DynamicFields,E as EnableDisableSegment,G as GRAPH_FLOW_ANIMATED_EDGE,j as GraphFlow,k as GraphFlowComponent,I as InstrumentationPreviewSection,N as NOISY_PERCENTAGE_OPTIONS,O as OdigosLogoTextByTier,l as OperationSection,P as PERCENTAGE_OPTIONS,m as PercentageSection,n as PresetWithCustomInput,R as RuleInfoSection,o as RuleTypeSection,S as SamplingPreviewSection,p as SignalsCheckboxList,q as SourceScopeSection,U as UpgradeModal,W as WIDE_DRAWER_WIDTH,r as WideDrawer,Y as YamlSectionCard,s as getElkLayoutedElements,t as getGraphEdgePath}from"./chunks/index-DH7pdkVR.js";export{C as ColoredSpan,a as ColoredSpanVariant}from"./chunks/helpers-lW-r7stw.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";import"elkjs/lib/elk.bundled.js";import"@xyflow/react";import"@xyflow/react/dist/style.css";
package/lib/store.js CHANGED
@@ -1 +1 @@
1
- export{ht as DrawerType,bj as ProgressKeys,jx as getDrawerTypeForAdd,eS as getDrawerTypeForEdit,bg as useDataStreamStore,eN as useDrawerStore,js as useFilterStore,bb as useNotificationStore,bh as useProgressStore,jy as useSelectedStore,bi as useSetupStore}from"./chunks/ui-components-mqa1Nv5H.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
1
+ export{hu as DrawerType,bj as ProgressKeys,jy as getDrawerTypeForAdd,eS as getDrawerTypeForEdit,bg as useDataStreamStore,eN as useDrawerStore,jt as useFilterStore,bb as useNotificationStore,bh as useProgressStore,jz as useSelectedStore,bi as useSetupStore}from"./chunks/ui-components-BnY4B3Vq.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
package/lib/theme.js CHANGED
@@ -1 +1 @@
1
- export{nJ as Provider,nK as animations,nL as opacity,nM as palettes}from"./chunks/ui-components-mqa1Nv5H.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
1
+ export{nR as Provider,nS as animations,nT as opacity,nU as palettes}from"./chunks/ui-components-BnY4B3Vq.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
@@ -1,4 +1,7 @@
1
- /** Matches GraphQL `RecommendationType`. */
1
+ /**
2
+ * Recommendation types currently shipped in the catalog. The wire type is a free
3
+ * string so a new catalog manifest renders without a ui-kit release.
4
+ */
2
5
  export declare enum RecommendationType {
3
6
  InferDBAttributes = "InferDBAttributes",
4
7
  AutoGoOffsetUpdater = "AutoGoOffsetUpdater",
@@ -20,6 +23,7 @@ export declare enum RecommendationApplyExampleType {
20
23
  HelmValues = "HelmValues",
21
24
  OdigosAction = "OdigosAction"
22
25
  }
26
+ /** Remediation types currently shipped in the catalog. The wire type is a free string. */
23
27
  export declare enum RecommendationRemediationType {
24
28
  DirectAutoOffsets = "DirectAutoOffsets",
25
29
  DropAllHealthProbes = "DropAllHealthProbes",
@@ -46,15 +50,17 @@ export interface RecommendationCatalogApplyExample {
46
50
  }
47
51
  /** Matches GraphQL `RecommendationCatalogRemediation`. */
48
52
  export interface RecommendationCatalogRemediation {
49
- type: RecommendationRemediationType;
53
+ type: string;
50
54
  buttonText: string;
51
55
  tooltip: string;
56
+ /** True when the catalog defines steps the backend can apply, so the UI can offer a direct apply. */
57
+ canApplyViaUi: boolean;
52
58
  applyExamples: RecommendationCatalogApplyExample[];
53
59
  }
54
60
  /** Matches GraphQL `Recommendation` — CR enriched with catalog metadata. */
55
61
  export interface Recommendation {
56
62
  name: string;
57
- type: RecommendationType;
63
+ type: string;
58
64
  applied: boolean;
59
65
  conditionsMet: boolean;
60
66
  dismissed: boolean;
package/lib/types.js CHANGED
@@ -1 +1 @@
1
- export{ek as ActionCategoryTypes,by as ActionKeyTypes,bz as ActionType,kP as AgentInjectedReason,kQ as BooleanOperation,es as CloudConnectorFeatureKey,am as CodeAttributesKeyTypes,kR as ConditionType,be as Crud,ag as CustomInstrumentationsKeyTypes,f1 as DesiredConditionActionItemType,eH as DesiredStateProgress,kS as DestinationTypes,bf as EntityTypes,c8 as ExtractionDataFormat,q as FieldTypes,ai as GolangCustomProbe,ak as HeadersCollectionKeyTypes,J as InputTypes,kT as InsightsAnomalyClassFindingKind,iP as InsightsAnomalyResolution,iM as InsightsAnomalyStatus,kU as InsightsBaselineHistogramUnit,iQ as InsightsBaselineLearningPhase,iO as InsightsBulkResolution,bT as InsightsDeviationClass,bn as InsightsEntityTypes,iN as InsightsFindingKind,bV as InsightsLearningConditionType,bX as InsightsLearningMode,bS as InsightsPolicyScope,bM as InsightsRuleMode,i$ as InsightsSampleReason,e9 as InsightsSeverity,jp as InsightsStorageDiskStatus,kV as InsightsStorageHealthStatus,kW as InsightsTransactionKind,iL as InsightsViolationStatus,kX as InstallationMethod,kY as InstallationStatus,af as InstrumentationRuleType,kZ as IntrumentationStatus,ah as JavaCustomProbe,k_ as JsonOperation,c6 as K8sAttributesFrom,c0 as K8sResourceKind,k$ as K8sWorkloadContainerAgentConfigTracesHeadSamplingSpanMetricsMode,l0 as ListDirection,l1 as NumberOperation,l2 as OtelDistroName,l3 as OtherEntityTypes,al as PayloadCollectionKeyTypes,aj as PhpCustomProbe,P as PlatformType,l4 as PodContainerLifecycleStatus,l5 as PodContainerStatus,l6 as PodPhase,l7 as Profile,_ as ProgrammingLanguages,fc as RecommendationApplyExampleType,fd as RecommendationRemediationType,fb as RecommendationState,l8 as RecommendationType,l9 as SIGNAL_KEY_TO_TYPE,la as SIGNAL_TYPE_TO_KEY,lb as SignalKey,bE as SignalType,lc as SortDirection,S as StatusType,ld as StringOperation,b as Tier,le as WorkloadRolloutReason,jL as WorkloadRolloutStatus}from"./chunks/ui-components-mqa1Nv5H.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
1
+ export{ek as ActionCategoryTypes,by as ActionKeyTypes,bz as ActionType,kW as AgentInjectedReason,kX as BooleanOperation,es as CloudConnectorFeatureKey,am as CodeAttributesKeyTypes,kY as ConditionType,be as Crud,ag as CustomInstrumentationsKeyTypes,f1 as DesiredConditionActionItemType,eH as DesiredStateProgress,kZ as DestinationTypes,bf as EntityTypes,c8 as ExtractionDataFormat,q as FieldTypes,ai as GolangCustomProbe,ak as HeadersCollectionKeyTypes,J as InputTypes,k_ as InsightsAnomalyClassFindingKind,iQ as InsightsAnomalyResolution,iN as InsightsAnomalyStatus,k$ as InsightsBaselineHistogramUnit,iR as InsightsBaselineLearningPhase,iP as InsightsBulkResolution,bT as InsightsDeviationClass,bn as InsightsEntityTypes,iO as InsightsFindingKind,bV as InsightsLearningConditionType,bX as InsightsLearningMode,bS as InsightsPolicyScope,bM as InsightsRuleMode,j0 as InsightsSampleReason,e9 as InsightsSeverity,jq as InsightsStorageDiskStatus,l0 as InsightsStorageHealthStatus,l1 as InsightsTransactionKind,iM as InsightsViolationStatus,l2 as InstallationMethod,l3 as InstallationStatus,af as InstrumentationRuleType,l4 as IntrumentationStatus,ah as JavaCustomProbe,l5 as JsonOperation,c6 as K8sAttributesFrom,c0 as K8sResourceKind,l6 as K8sWorkloadContainerAgentConfigTracesHeadSamplingSpanMetricsMode,l7 as ListDirection,l8 as NumberOperation,l9 as OtelDistroName,la as OtherEntityTypes,al as PayloadCollectionKeyTypes,aj as PhpCustomProbe,P as PlatformType,lb as PodContainerLifecycleStatus,lc as PodContainerStatus,ld as PodPhase,le as Profile,_ as ProgrammingLanguages,fe as RecommendationApplyExampleType,lf as RecommendationRemediationType,fb as RecommendationState,lg as RecommendationType,lh as SIGNAL_KEY_TO_TYPE,li as SIGNAL_TYPE_TO_KEY,lj as SignalKey,bE as SignalType,lk as SortDirection,S as StatusType,ll as StringOperation,b as Tier,lm as WorkloadRolloutReason,jM as WorkloadRolloutStatus}from"./chunks/ui-components-BnY4B3Vq.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
package/lib/visuals.js CHANGED
@@ -1 +1 @@
1
- export{lf as VISUAL_ODIGOS_LOGO_HEIGHT,lg as VISUAL_ODIGOS_LOGO_WIDTH,V as VisualGreenRings,lh as VisualOdigosLogo,hD as VisualPurpleRings}from"./chunks/ui-components-mqa1Nv5H.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
1
+ export{ln as VISUAL_ODIGOS_LOGO_HEIGHT,lo as VISUAL_ODIGOS_LOGO_WIDTH,V as VisualGreenRings,lp as VisualOdigosLogo,hE as VisualPurpleRings}from"./chunks/ui-components-BnY4B3Vq.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odigos/ui-kit",
3
- "version": "0.0.298",
3
+ "version": "0.0.299",
4
4
  "author": "Odigos",
5
5
  "license": "MIT",
6
6
  "repository": {