@odigos/ui-kit 0.0.249 → 0.0.251

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 (140) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/docs/api-context.md +687 -0
  3. package/lib/chunks/connections-scope-CneIqjeg.js +1 -0
  4. package/lib/chunks/flow-CQi_KYfs.js +49 -0
  5. package/lib/chunks/helpers-K1tnyqhm.js +19 -0
  6. package/lib/chunks/{index-CRKgHzab.js → index-Dv0RvKAp.js} +8 -8
  7. package/lib/chunks/source-instrument-form-context-C79I_5cH.js +1 -0
  8. package/lib/chunks/{ui-components-DODwSdKu.js → ui-components-BKrLf2tx.js} +214 -214
  9. package/lib/chunks/use-odigos-api-CDHW7ekQ.js +5 -0
  10. package/lib/chunks/vendor-BFqT13Me.js +1 -0
  11. package/lib/components/_v2/segment/index.d.ts +4 -2
  12. package/lib/components/v2.js +1 -1
  13. package/lib/components.js +1 -1
  14. package/lib/constants/strings/index.d.ts +7 -0
  15. package/lib/constants.js +1 -1
  16. package/lib/containers/_v2/_drawers/add-action-drawer/index.d.ts +0 -2
  17. package/lib/containers/_v2/_drawers/add-destination-drawer/form-column/index.d.ts +1 -5
  18. package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +0 -6
  19. package/lib/containers/_v2/_drawers/add-destination-drawer/lists-filters/index.d.ts +2 -1
  20. package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +0 -2
  21. package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +1 -4
  22. package/lib/containers/_v2/_drawers/edit-action-drawer/index.d.ts +0 -3
  23. package/lib/containers/_v2/_drawers/edit-config-drawer/index.d.ts +1 -3
  24. package/lib/containers/_v2/_drawers/edit-destination-drawer/index.d.ts +0 -5
  25. package/lib/containers/_v2/_drawers/edit-rule-drawer/index.d.ts +0 -3
  26. package/lib/containers/_v2/_drawers/edit-source-drawer/debug/index.d.ts +1 -2
  27. package/lib/containers/_v2/_drawers/edit-source-drawer/index.d.ts +3 -14
  28. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/index.d.ts +1 -2
  29. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/index.d.ts +0 -2
  30. package/lib/containers/_v2/_drawers/edit-source-drawer/peers/index.d.ts +1 -6
  31. package/lib/containers/_v2/_drawers/edit-source-drawer/profiling/index.d.ts +1 -15
  32. package/lib/containers/_v2/_drawers/edit-source-drawer/sampling/index.d.ts +8 -0
  33. package/lib/containers/_v2/_drawers/edit-source-drawer/sampling/rule-row.d.ts +8 -0
  34. package/lib/containers/_v2/_drawers/edit-source-drawer/tabs.d.ts +1 -0
  35. package/lib/containers/_v2/_drawers/system-drawer/describe/index.d.ts +1 -8
  36. package/lib/containers/_v2/_drawers/system-drawer/diagnose/index.d.ts +1 -4
  37. package/lib/containers/_v2/_drawers/system-drawer/index.d.ts +1 -4
  38. package/lib/containers/_v2/_drawers/system-drawer/tokens/index.d.ts +1 -2
  39. package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +1 -2
  40. package/lib/containers/_v2/_modals/add-data-stream-modal/index.d.ts +0 -3
  41. package/lib/containers/_v2/_modals/edit-data-stream-modal/index.d.ts +0 -2
  42. package/lib/containers/_v2/_modals/sampling-onboarding-modal/types.d.ts +1 -4
  43. package/lib/containers/_v2/central-connections/index.d.ts +1 -12
  44. package/lib/containers/_v2/onboarding/index.d.ts +0 -8
  45. package/lib/containers/_v2/overview/columns/column/head.d.ts +1 -1
  46. package/lib/containers/_v2/overview/columns/column/index.d.ts +2 -1
  47. package/lib/containers/_v2/overview/columns/index.d.ts +1 -8
  48. package/lib/containers/_v2/overview/data-stream-select/index.d.ts +1 -10
  49. package/lib/containers/_v2/overview/drawers/index.d.ts +2 -29
  50. package/lib/containers/_v2/overview/index.d.ts +2 -8
  51. package/lib/containers/_v2/overview/multi-source-control/index.d.ts +1 -5
  52. package/lib/containers/_v2/pipeline-collectors/index.d.ts +0 -7
  53. package/lib/containers/_v2/pipeline-collectors/pods-info/index.d.ts +1 -2
  54. package/lib/containers/_v2/pipeline-collectors/pods-info/pod-drawer/index.d.ts +1 -2
  55. package/lib/containers/_v2/sampling-rules/helpers.d.ts +2 -0
  56. package/lib/containers/_v2/sampling-rules/types.d.ts +2 -16
  57. package/lib/containers/_v2/settings/index.d.ts +0 -9
  58. package/lib/containers/service-map/index.d.ts +4 -2
  59. package/lib/containers/v2.js +197 -166
  60. package/lib/containers.js +7 -7
  61. package/lib/contexts/index.d.ts +1 -0
  62. package/lib/contexts/odigos-api/capabilities.d.ts +38 -0
  63. package/lib/contexts/odigos-api/client.d.ts +22 -0
  64. package/lib/contexts/odigos-api/connections-scope.d.ts +18 -0
  65. package/lib/contexts/odigos-api/hooks/use-actions-api.d.ts +26 -0
  66. package/lib/contexts/odigos-api/hooks/use-collectors-api.d.ts +25 -0
  67. package/lib/contexts/odigos-api/hooks/use-config-api.d.ts +24 -0
  68. package/lib/contexts/odigos-api/hooks/use-data-streams-api.d.ts +26 -0
  69. package/lib/contexts/odigos-api/hooks/use-describe-api.d.ts +33 -0
  70. package/lib/contexts/odigos-api/hooks/use-destinations-api.d.ts +50 -0
  71. package/lib/contexts/odigos-api/hooks/use-instrumentation-rules-api.d.ts +35 -0
  72. package/lib/contexts/odigos-api/hooks/use-k8s-manifest-api.d.ts +14 -0
  73. package/lib/contexts/odigos-api/hooks/use-metrics-api.d.ts +13 -0
  74. package/lib/contexts/odigos-api/hooks/use-namespace-api.d.ts +30 -0
  75. package/lib/contexts/odigos-api/hooks/use-profiling-api.d.ts +17 -0
  76. package/lib/contexts/odigos-api/hooks/use-sampling-api.d.ts +39 -0
  77. package/lib/contexts/odigos-api/hooks/use-service-map-api.d.ts +13 -0
  78. package/lib/contexts/odigos-api/hooks/use-snapshots-api.d.ts +13 -0
  79. package/lib/contexts/odigos-api/hooks/use-sources-api.d.ts +75 -0
  80. package/lib/contexts/odigos-api/hooks/use-tokens-api.d.ts +12 -0
  81. package/lib/contexts/odigos-api/index.d.ts +37 -0
  82. package/lib/contexts/odigos-api/internal/notify.d.ts +49 -0
  83. package/lib/contexts/odigos-api/internal/source-payloads.d.ts +53 -0
  84. package/lib/contexts/odigos-api/platform-helpers.d.ts +98 -0
  85. package/lib/contexts/odigos-api/provider.d.ts +28 -0
  86. package/lib/contexts/odigos-api/runner.d.ts +32 -0
  87. package/lib/contexts/odigos-api/types.d.ts +831 -0
  88. package/lib/contexts/odigos-api/use-api-for-connections.d.ts +43 -0
  89. package/lib/contexts/odigos-api/use-api-query.d.ts +130 -0
  90. package/lib/contexts/odigos-api/use-odigos-api.d.ts +103 -0
  91. package/lib/contexts/odigos-api.js +1 -0
  92. package/lib/contexts/odigos-context.d.ts +2 -2
  93. package/lib/contexts/storybook-context.d.ts +2 -2
  94. package/lib/contexts.js +1 -1
  95. package/lib/functions.js +1 -1
  96. package/lib/hooks.js +1 -1
  97. package/lib/icons/destinations/open-telemetry-logo/index.d.ts +2 -1
  98. package/lib/snippets/_v2/sampling-rule-form-sections/preset-with-custom-input.d.ts +1 -1
  99. package/lib/snippets/v2.js +1 -1
  100. package/lib/snippets.js +1 -49
  101. package/lib/store/index.d.ts +0 -1
  102. package/lib/store/useDrawerStore.d.ts +6 -1
  103. package/lib/store.js +1 -1
  104. package/lib/theme.js +1 -1
  105. package/lib/types/actions/index.d.ts +0 -5
  106. package/lib/types/common/index.d.ts +29 -4
  107. package/lib/types/destinations/index.d.ts +0 -10
  108. package/lib/types/index.d.ts +0 -1
  109. package/lib/types/instrumentation-rules/index.d.ts +0 -5
  110. package/lib/types/namespaces/index.d.ts +0 -5
  111. package/lib/types/pipeline-collectors/index.d.ts +0 -5
  112. package/lib/types/snapshot/index.d.ts +0 -2
  113. package/lib/types/sources/index.d.ts +0 -30
  114. package/lib/types/tokens/index.d.ts +0 -6
  115. package/lib/types/workload/index.d.ts +46 -22
  116. package/lib/types.js +1 -1
  117. package/lib/visuals.js +1 -1
  118. package/package.json +31 -22
  119. package/lib/chunks/helpers-IEFhGXc7.js +0 -19
  120. package/lib/chunks/source-instrument-form-context-DjIHPYQJ.js +0 -1
  121. package/lib/chunks/vendor-Be0cOokr.js +0 -1
  122. package/lib/mock-data/actions/index.d.ts +0 -2
  123. package/lib/mock-data/config/index.d.ts +0 -3
  124. package/lib/mock-data/connections/index.d.ts +0 -2
  125. package/lib/mock-data/describe/index.d.ts +0 -3
  126. package/lib/mock-data/destinations/index.d.ts +0 -4
  127. package/lib/mock-data/index.d.ts +0 -15
  128. package/lib/mock-data/instrumentation-instances/index.d.ts +0 -2
  129. package/lib/mock-data/instrumentation-rules/index.d.ts +0 -2
  130. package/lib/mock-data/namespaces/index.d.ts +0 -2
  131. package/lib/mock-data/pipeline-collectors/index.d.ts +0 -6
  132. package/lib/mock-data/profiling/index.d.ts +0 -8
  133. package/lib/mock-data/service-map/index.d.ts +0 -4
  134. package/lib/mock-data/snapshot/index.d.ts +0 -5
  135. package/lib/mock-data/sources/index.d.ts +0 -4
  136. package/lib/mock-data/sources/yamls.d.ts +0 -22
  137. package/lib/mock-data/tokens/index.d.ts +0 -2
  138. package/lib/mock-data/traces/index.d.ts +0 -2
  139. package/lib/store/useEntityStore.d.ts +0 -24
  140. package/lib/types/k8s-manifest/index.d.ts +0 -2
@@ -0,0 +1,5 @@
1
+ import{useMemo as e,useContext as t,createContext as r,useCallback as a,useState as n,useEffect as o}from"react";import{HttpLink as i,from as s,split as c,ApolloClient as d,InMemoryCache as u,ApolloProvider as l,useApolloClient as E,useLazyQuery as T,useQuery as f,gql as _}from"@apollo/client";import{jsx as R}from"react/jsx-runtime";import{onError as p}from"@apollo/client/link/error";import{setContext as S}from"@apollo/client/link/context";import{getMainDefinition as y}from"@apollo/client/utilities";import{o as m,y as A,D as O,S as I,X as N,Y as C,E as g,P as h,c as L,z as P,Z as G,_ as U,$ as v,a0 as D,a1 as w,a2 as b}from"./ui-components-BKrLf2tx.js";const F=e=>{if(!e)return!1;const t=e.toLowerCase();return t.includes("authentication required")||t.includes("authentication expired")||t.includes("http 401")},k=r(null),M=()=>{const e=t(k);if(!e)throw new Error("[ui-kit] useOdigosApi() / useXxxApi() called outside of <OdigosApiProvider>. Make sure the host app mounts the provider at its layout level.");return e},Y=({apolloConfig:t,operations:r,context:a,children:n})=>{const o=e(()=>(e=>{const t=new i({uri:e.httpUrl,credentials:e.credentials??"same-origin"}),r=p(({graphQLErrors:t,networkError:r})=>{t&&t.length>0&&t.some(e=>F(e.message))&&e.onAuthError?.(),r&&(401===r.statusCode||F(r.message))&&e.onAuthError?.()}),a=S(async(t,r)=>{const a={...r.headers};if(e.authHeader){const t=await e.authHeader();Object.assign(a,t)}return e.csrfHeader&&Object.assign(a,e.csrfHeader()),{headers:a}}),n=[];e.additionalLinks?.length&&n.push(...e.additionalLinks),n.push(a,r,t);let o=s(n);e.wsLink&&(o=c(({query:e})=>{const t=y(e);return"OperationDefinition"===t.kind&&"subscription"===t.operation},e.wsLink,o));const l=e.defaultFetchPolicies;return new d({link:o,cache:new u({addTypename:e.addTypename??!0,typePolicies:e.cacheTypePolicies}),defaultOptions:{watchQuery:{fetchPolicy:l?.watchQuery??"cache-and-network"},query:{fetchPolicy:l?.query??"cache-first"},mutate:{fetchPolicy:l?.mutate??"network-only"}}})})(t),[t.httpUrl,t.wsLink,t.addTypename,t.credentials]),E=e(()=>({operations:r,context:a,apolloConfig:t}),[r,a,t]);return R(l,{client:o,children:R(k.Provider,{value:E,children:n})})},H=k,W=e=>({error:e,results:[],allSucceeded:!1,anySucceeded:!1,successCount:0,failureCount:0}),x=(e,t)=>{if(e)return"function"==typeof e?e(t):e},K=e=>{if(!e)return"Unknown error";if(e instanceof Error)return e.cause instanceof Error?e.cause.message:e.message;if("object"==typeof e){const t=e;return t.cause?.message||t.message||String(e)}return String(e)},V=(e,t)=>e.client??t,B=async(e,t,r,a,n)=>{if(!t)return{error:"Query operation not configured"};const o=x(t.document,a);if(!o)return{error:"Query operation not supported in this context"};if(t.canRun&&!t.canRun(a))return{data:void 0};const i=t.transformVariables?t.transformVariables(r,a):r,s=V(t,e);try{const e=await s.query({query:o,variables:i,fetchPolicy:"network-only"});return{data:t.transformResult?t.transformResult(e.data,a):e.data,error:e.error?K(e.error):void 0}}catch(e){return{error:K(e)}}},j=async(e,t,r,a)=>{if(!t)return{error:"Mutation operation not configured"};const n=x(t.document,a);if(!n)return{error:"Mutation operation not supported in this context"};if(t.canRun&&!t.canRun(a))return{data:void 0};const o=t.transformVariables?t.transformVariables(r,a):r,i=V(t,e);try{const e=await i.mutate({mutation:n,variables:o});return{data:t.transformResult?t.transformResult(e.data,a):e.data,error:void 0}}catch(e){return{error:K(e)}}},q=async(e,t,r,a,n)=>{if(!t)return W("Multi fetch operation not configured");if(!r.length)return W("No proxy ids supplied for multi fetch");const o=V(t,e);if(t.transformVariablesMulti&&(t.documentMulti||t.document)){const e=t.transformVariablesMulti(r,a,n),i=[];for(const r of e)try{const e=await o.query({query:r.document,variables:r.variables,fetchPolicy:"network-only"});t.transformMultiResult?t.transformMultiResult(e.data,n).forEach(e=>i.push(e)):r.proxyIDs.forEach(t=>{i.push({proxyID:t,success:!e.error,data:e.data,error:e.error?.message})})}catch(e){const t=K(e);r.proxyIDs.forEach(e=>i.push({proxyID:e,success:!1,error:t}))}const s=i.filter(e=>e.success).length,c=i.length-s,d=Array.from(new Set(i.filter(e=>!!e.error).map(e=>e.error)));return{results:i,allSucceeded:0===c,anySucceeded:s>0,successCount:s,failureCount:c,error:d.length?d.join(", "):void 0}}const i=await Promise.all(r.map(async r=>{const o={...n,proxyID:r},i=await B(e,t,a,o);return{proxyID:r,success:!i.error,data:i.data,error:i.error}})),s=i.filter(e=>e.success).length,c=i.length-s,d=Array.from(new Set(i.filter(e=>!!e.error).map(e=>e.error)));return{results:i,allSucceeded:0===c,anySucceeded:s>0,successCount:s,failureCount:c,error:d.length?d.join(", "):void 0}},Q=(e,t)=>{if(e)return"string"==typeof e?e:N(e,t)},$=e=>{const{addNotification:t}=m(),r=(r,a,n,o,i)=>t({type:r,title:a,message:n,crdType:e,target:Q(o,e),hideFromHistory:i});return{notify:r,notifyError:(e,t,a)=>r(I.Error,e,t,a),notifySuccess:(e,t,a)=>r(I.Success,e,t,a),notifyPending:(e,t)=>r(I.Default,"Pending",e,t,!0),notifyReadonly:()=>{t({type:I.Warning,title:O.READONLY,message:A.READONLY_WARNING,hideFromHistory:!0})}}},z=e=>{e({type:I.Warning,title:O.READONLY,message:A.READONLY_WARNING,hideFromHistory:!0})},X=_`
2
+ query OdigosApiNoop {
3
+ __typename
4
+ }
5
+ `,J=(e,t)=>{if(e)return"function"==typeof e?e(t):e},Z=(e,t)=>e[t],ee=(e,t,r)=>{if(void 0===t)return;return e?.transformResult?e.transformResult(t,r):t},te=(e,t,r)=>{if(!e)return;const a=e.transformVariables;return a?a(t,r):t},re=(t,r,n)=>{const{operations:o,context:i}=M(),s=Z(o,t),c=e(()=>J(s?.document,i),[s,i]),d=e(()=>te(s,r,i),[s,r,i]),u=!s||!c,l=!!s?.canRun&&!s.canRun(i),E=n?.skip||u||l,T=f(c??X,{variables:d,skip:E,pollInterval:n?.pollInterval,fetchPolicy:n?.fetchPolicy??"cache-and-network",notifyOnNetworkStatusChange:n?.notifyOnNetworkStatusChange,client:s?.client,onCompleted:n?.onCompleted?e=>{const t=ee(s,e,i);void 0!==t&&n.onCompleted(t)}:void 0,onError:n?.onError}),_=e(()=>{if(!E)return ee(s,T.data,i)},[s,i,T.data,E]),R=a(async()=>{if(u)return{data:void 0};const e=await T.refetch();return{data:ee(s,e.data,i)}},[s,i,T,u]);return{data:_,loading:!E&&T.loading,error:T.error,refetch:R,unsupported:u}},ae=(t,r)=>{const{operations:n,context:o}=M(),i=Z(n,t),s=e(()=>J(i?.document,o),[i,o]),c=!i||!s,[d,u]=T(s??X,{fetchPolicy:r?.fetchPolicy??"network-only",notifyOnNetworkStatusChange:r?.notifyOnNetworkStatusChange,client:i?.client});return{execute:a(async e=>{if(c)return{error:void 0};if(i?.canRun&&!i.canRun(o))return{data:void 0};const t=te(i,e,o),r=await d({variables:t});return r.error?{error:r.error}:{data:ee(i,r.data,o)}},[i,o,d,c]),data:e(()=>ee(i,u.data,o),[i,o,u.data]),loading:u.loading,error:u.error,called:u.called,unsupported:c}},ne=(t,r)=>{const{operations:o,context:i}=M(),s=E(),c=Z(o,t),d=e(()=>J(c?.document,i),[c,i]),u=!c||!d,[l,T]=n({loading:!1,called:!1}),f=a(()=>T({loading:!1,called:!1}),[]);return[a(async e=>{if(u||!d)return{error:void 0};if(c?.canRun&&!c.canRun(i))return{data:void 0};const t=te(c,e,i),a=c?.client??s;T(e=>({...e,loading:!0,called:!0}));try{const e=await a.mutate({mutation:d,variables:t}),n=ee(c,e.data,i);if(T({data:n,loading:!1,error:void 0,called:!0}),r?.refetchQueries){const e=a.refetchQueries({include:r.refetchQueries});r?.awaitRefetchQueries&&await e}return void 0!==n&&r?.onCompleted?.(n),{data:n}}catch(e){const t=e;return T({data:void 0,loading:!1,error:t,called:!0}),r?.onError?.(t),{error:t}}},[c,i,s,d,u,r]),{data:l.data,loading:l.loading,error:l.error,called:l.called,unsupported:u,reset:f}]},oe=(e,t,r,a)=>{let n=!0;const o={sources:[]};for(const[i,s]of Object.entries(e)){if(!s.length)continue;n=!1;const e=s.map(({id:e,selected:t,currentStreamName:a})=>({namespace:e.namespace,name:e.name,kind:e.kind,selected:void 0!==t&&t,currentStreamName:a||r}));let c=0,d=0;for(const r of e){const e=t.find(e=>e.id.namespace===i&&e.id.name===r.name&&e.id.kind===r.kind),a=e?.dataStreamNames||[];r.selected&&!e?c++:!r.selected&&e&&a.length<=1&&d++}a(c,d),o.sources.push(...e)}return{payload:o,isEmpty:n}},ie=(e,t)=>{let r=!0;const a={namespaces:[]};for(const[n,{selected:o,currentStreamName:i}]of Object.entries(e))"boolean"==typeof o&&(r=!1,a.namespaces.push({namespace:n,selected:o,currentStreamName:i||t}));return{payload:a,isEmpty:r}},se={filter:{markedForInstrumentation:!0}},ce=[],de=[],ue=async e=>{const t=(e=>{try{return new URL("/diagnose/download",e).toString()}catch{return null}})(e.httpUrl);if(t)try{const[r,a]=await Promise.all([Promise.resolve(e.authHeader?.()??{}),Promise.resolve(e.csrfHeader?.()??{})]),n=await fetch(t,{credentials:e.credentials??"same-origin",headers:{...r,...a}});if(!n.ok)throw new Error(`Failed to download diagnose archive: ${n.status} ${n.statusText}`);((e,t)=>{if("undefined"==typeof document)return;const r=URL.createObjectURL(e),a=document.createElement("a");a.href=r,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(r)})(await n.blob(),`odigos-diagnose-${Date.now()}.tar.gz`)}catch(e){}},le=[],Ee=[],Te=[],fe=(e,t)=>({...e,fields:e.fields.filter(({value:e})=>void 0!==e),currentStreamName:t}),_e=t=>{const{operations:r,context:n}=M(),i=E(),s=t?.subscribe,c=!!s&&s.includes("sources"),d=!!s&&s.includes("destinations"),u=!!s&&s.includes("actions"),l=!!s&&s.includes("rules"),T=!!s&&s.includes("namespaces"),f=!!s&&s.includes("dataStreams"),_=!!s&&s.includes("destinationCategories"),R=!!s&&s.includes("potentialDestinations"),p=((e,t,r)=>{const n=E(),{notifyError:o,notifySuccess:i,notifyPending:s,notifyReadonly:c}=$(g.Source),{selectedStreamName:d}=P(),{setProgress:u,resetProgress:l}=G(),{setConfiguredSources:T,setConfiguredFutureApps:f}=U(),_=re("GET_WORKLOADS",se,{fetchPolicy:"cache-first",skip:!r?.subscribe}),R=_.data?.workloads??ce,p=(e,t)=>{const{progress:r}=G.getState();e>0&&u(v.Instrumenting,{total:(r[v.Instrumenting]?.total||0)+e,current:r[v.Instrumenting]?.current||0}),t>0&&u(v.Uninstrumenting,{total:(r[v.Uninstrumenting]?.total||0)+t,current:r[v.Uninstrumenting]?.current||0})},S=a(async()=>{const{error:r}=await B(n,e.GET_WORKLOADS,se,t);r&&o(C.Read,r)},[n,e.GET_WORKLOADS,t,o]);return{items:R,loading:_.loading,fetchAll:S,fetchByTargets:async(r,a)=>{const i=!!a?.slim,s=r.map(e=>D(e,g.Source)).filter(e=>e.namespace&&e.name&&e.kind);if(0===s.length)return;if(s.length>50)return void await S();const c=i&&e.GET_WORKLOADS_BY_IDS_SLIM?e.GET_WORKLOADS_BY_IDS_SLIM:e.GET_WORKLOADS_BY_IDS,{error:d}=await B(n,c,{ids:s.map(({namespace:e,kind:t,name:r})=>({namespace:e,kind:t,name:r}))},t);d?o(C.Read,d):await S()},fetchById:async r=>{const{data:a,error:i}=await B(n,e.GET_WORKLOADS_BY_IDS,{ids:[{namespace:r.namespace,kind:r.kind,name:r.name}]},t);if(!i)return await S(),a?.workloadsByIds?.find(e=>e.id.namespace===r.namespace&&e.id.kind===r.kind&&e.id.name===r.name);o(C.Read,i)},fetchLibraries:async r=>B(n,e.GET_SOURCE_LIBRARIES,r,t),fetchPeerSources:async r=>B(n,e.GET_PEER_SOURCES,{serviceName:r},t),persist:async(r,a)=>{if(t.isReadonly)return c();const{payload:i,isEmpty:u}=oe(r,R,d,p),{payload:E,isEmpty:_}=ie(a,d);let S=!1;u||(S=!0,s("Persisting sources...")),_||S||s("Persisting namespaces...");const{error:y}=await j(n,e.PERSIST_SOURCES,i,t);if(y&&(l(v.Instrumenting),l(v.Uninstrumenting),o(C.Update,y)),e.PERSIST_NAMESPACES){const{error:r}=await j(n,e.PERSIST_NAMESPACES,E,t);r&&o(C.Update,r)}T({}),f({})},persistV2:async r=>{if(t.isReadonly)return c(),{error:"readonly"};const a=[];for(const[,o]of Object.entries(r)){const r={sources:[]},i={namespaces:[]};for(const e of o)e.name&&e.kind?r.sources.push(e):i.namespaces.push(e);if(i.namespaces.length>0&&e.PERSIST_NAMESPACES){const{error:r}=await j(n,e.PERSIST_NAMESPACES,i,t);r&&a.push(r)}if(r.sources.length>0){const{error:o}=await j(n,e.PERSIST_SOURCES,r,t);o&&a.push(o)}}return a.length?{error:a.join(", ")}:void 0},update:async(r,a)=>{if(t.isReadonly)return c();s("Updating source...");const u={sourceId:r,patchSourceRequest:{...a,currentStreamName:d}},{data:l,error:E}=await j(n,e.UPDATE_SOURCE,u,t);E?o(C.Update,E,r):l?.updateK8sActualSource&&i(C.Update,`Successfully updated "${r.name}" source`,r)},restartWorkloads:async r=>{if(t.isReadonly)return c();s("Restarting sources...");const{data:a,error:d}=await j(n,e.RESTART_WORKLOADS,{sourceIds:r},t);d?o(C.Update,d):a?.restartWorkloads&&i(C.Update,`Successfully restarted ${r.length} sources`)},restartPod:async(r,a)=>{if(t.isReadonly)return c();s("Restarting pod...");const{data:d,error:u}=await j(n,e.RESTART_POD,{namespace:r,name:a},t);u?o(C.Update,u):d?.restartPod&&i(C.Update,`Successfully restarted pod ${r}/${a}`)},recoverFromRollback:async r=>{if(t.isReadonly)return c();s("Recovering from rollback...");const{data:a,error:d}=await j(n,e.RECOVER_FROM_ROLLBACK,{sourceId:r},t);d?o(C.Update,d,r):a?.recoverFromRollbackForWorkload&&i(C.Update,"Successfully triggered recovery from rollback")}}})(r,n,{subscribe:c}),S=((e,t,r)=>{const a=E(),{notifyError:n,notifySuccess:o,notifyReadonly:i}=$(g.Destination),{selectedStreamName:s}=P(),c=re("GET_DESTINATIONS",void 0,{fetchPolicy:"cache-first",skip:!r?.subscribe}),d=re("GET_DESTINATION_CATEGORIES",void 0,{skip:!r?.subscribeCategories}),u=re("GET_POTENTIAL_DESTINATIONS",void 0,{skip:!r?.subscribePotential}),l=c.data?.computePlatform?.destinations??c.data?.destinations??Te,T=async()=>{const{error:r}=await B(a,e.GET_DESTINATIONS,void 0,t);r&&n(C.Read,r)};return{items:l,loading:c.loading,fetchAll:T,categoriesResult:d.data,categoriesLoading:d.loading,potentialResult:u.data,potentialLoading:u.loading,testConnection:async r=>{const{data:n}=await j(a,e.TEST_DESTINATION_CONNECTION,{destination:fe(r,s)},t);return n},create:async r=>{if(t.isReadonly)return i();const{error:o}=await j(a,e.CREATE_DESTINATION,{destination:fe(r,s)},t);o?n(C.Create,o):await T()},update:async(r,c)=>{if(t.isReadonly)return i();const{data:d,error:u}=await j(a,e.UPDATE_DESTINATION,{id:r,destination:fe(c,s)},t);u?n(C.Update,u,r):d?.updateDestination&&(o(C.Update,`Successfully updated "${c.type}" destination`,r),await T())},remove:async r=>{if(t.isReadonly)return i();const{error:o}=await j(a,e.DELETE_DESTINATION,{id:r,currentStreamName:s},t);o?n(C.Delete,o,r):await T()}}})(r,n,{subscribe:d,subscribeCategories:_,subscribePotential:R}),y=((e,t,r)=>{const a=E(),{notifyError:n,notifyReadonly:o}=$(g.Action),i=re("GET_ACTIONS",void 0,{fetchPolicy:"cache-first",skip:!r?.subscribe}),s=i.data?.computePlatform?.actions??i.data?.actions??de,c=async()=>{const{error:r}=await B(a,e.GET_ACTIONS,void 0,t);r&&n(C.Read,r)};return{items:s,loading:i.loading,fetchAll:c,create:async r=>{if(t.isReadonly)return o();if(!e.CREATE_ACTION)return;const{error:i}=await j(a,e.CREATE_ACTION,{action:r},t);i?n(C.Create,i):await c()},update:async(r,i)=>{if(t.isReadonly)return o();if(!e.UPDATE_ACTION)return;const{error:s}=await j(a,e.UPDATE_ACTION,{id:r,action:i},t);s?n(C.Update,s,r):await c()},remove:async(r,i)=>{if(t.isReadonly)return o();if(!e.DELETE_ACTION)return;const{error:s}=await j(a,e.DELETE_ACTION,{id:r,actionType:i},t);s?n(C.Delete,s,r):await c()}}})(r,n,{subscribe:u}),A=((t,r,a)=>{const n=E(),{notifyError:o,notifyReadonly:i}=$(g.InstrumentationRule),s=re("GET_INSTRUMENTATION_RULES",void 0,{fetchPolicy:"cache-first",skip:!a?.subscribe}),c=e(()=>(s.data?.computePlatform?.instrumentationRules??s.data?.instrumentationRules??[]).map(w),[s.data]),d=async()=>{const{error:e}=await B(n,t.GET_INSTRUMENTATION_RULES,void 0,r);e&&o(C.Read,e)};return{items:c,loading:s.loading,fetchAll:d,create:async e=>{if(r.isReadonly)return i();if(!t.CREATE_INSTRUMENTATION_RULE)return;const{error:a}=await j(n,t.CREATE_INSTRUMENTATION_RULE,{instrumentationRule:b(e)},r);a?o(C.Create,a):await d()},update:async(e,a)=>{if(r.isReadonly)return i();if(!t.UPDATE_INSTRUMENTATION_RULE)return;const{error:s}=await j(n,t.UPDATE_INSTRUMENTATION_RULE,{ruleId:e,instrumentationRule:b(a)},r);s?o(C.Update,s,e):await d()},remove:async e=>{if(r.isReadonly)return i();if(!t.DELETE_INSTRUMENTATION_RULE)return;const{error:a}=await j(n,t.DELETE_INSTRUMENTATION_RULE,{ruleId:e},r);a?o(C.Delete,a,e):await d()}}})(r,n,{subscribe:l}),O=((e,t,r)=>{const a=E(),{addNotification:n}=m(),{setDataStreams:i}=P(),s=!!r?.subscribe,c=(e,t)=>n({type:I.Error,title:e,message:t}),d=re("GET_DATA_STREAMS",void 0,{fetchPolicy:"cache-first",skip:!s}),u=d.data?.computePlatform?.dataStreams??d.data?.dataStreams??Ee;o(()=>{s&&i(u)},[s,JSON.stringify(u.map(e=>e.name))]);const l=async()=>{const{data:r,error:n}=await B(a,e.GET_DATA_STREAMS,void 0,t);if(n)c(C.Read,n);else if(r){const e=r.computePlatform?.dataStreams??r.dataStreams??[];i(e)}},T=e.CREATE_DATA_STREAM?async r=>{if(t.isReadonly)return z(n);const{error:o}=await j(a,e.CREATE_DATA_STREAM,{stream:r},t);o?c(C.Create,o):await l()}:void 0;return{items:u,loading:d.loading,fetchAll:l,create:T,update:async(r,o)=>{if(t.isReadonly)return z(n);const{error:i}=await j(a,e.UPDATE_DATA_STREAM,{id:r,dataStream:o},t);i?c(C.Update,i):await l()},remove:async r=>{if(t.isReadonly)return z(n);const{error:o}=await j(a,e.DELETE_DATA_STREAM,{id:r},t);o?c(C.Delete,o):await l()}}})(r,n,{subscribe:f}),N=((e,t,r)=>{const a=E(),{notifyError:n,notifyReadonly:o}=$(g.Namespace),i=re("GET_NAMESPACES_WITH_WORKLOADS",void 0,{fetchPolicy:"cache-first",skip:!r?.subscribe});return{items:i.data?.namespaces??le,loading:i.loading,fetchAll:async()=>{const r=await B(a,e.GET_NAMESPACES_WITH_WORKLOADS,void 0,t);return r.error&&n(C.Read,r.error),r},persist:async r=>{if(t.isReadonly)return o();const{error:i}=await j(a,e.PERSIST_NAMESPACES,r,t);return i&&n(C.Update,i),i?{error:i}:void 0}}})(r,n,{subscribe:T}),F=((e,t)=>{const r=E(),{notifyError:a}=$(g.Source);return{fetch:async n=>{const o=await B(r,e.GET_K8S_MANIFEST,n,t);return o.error&&a(C.Read,o.error),o}}})(r,n),k=((e,t)=>{const r=E(),{notifyError:a,notifyReadonly:n}=$(g.Source);return{getEffectiveConfig:async a=>e.GET_EFFECTIVE_CONFIG?B(r,e.GET_EFFECTIVE_CONFIG,{id:a},t):{error:"GET_EFFECTIVE_CONFIG not configured"},applyConfigurations:e.UPDATE_REMOTE_CONFIG?async(o,i)=>{if(t.isReadonly)return n();const{error:s}=await j(r,e.UPDATE_REMOTE_CONFIG,{formData:o,connectionIds:i},t);return s&&a(C.Update,s),s?{error:s}:void 0}:void 0,getConfigYamls:e.GET_CONFIG_YAMLS?async()=>B(r,e.GET_CONFIG_YAMLS,void 0,t):void 0,updateLocalUiConfig:e.UPDATE_LOCAL_UI_CONFIG?async o=>{if(t.isReadonly)return n();const{error:i}=await j(r,e.UPDATE_LOCAL_UI_CONFIG,{config:o},t);return i&&a(C.Update,i),i?{error:i}:void 0}:void 0,resetLocalUiConfigToDefaults:e.RESET_LOCAL_UI_CONFIG_TO_FACTORY_DEFAULTS?async()=>{if(t.isReadonly)return n();const{error:o}=await j(r,e.RESET_LOCAL_UI_CONFIG_TO_FACTORY_DEFAULTS,void 0,t);return o&&a(C.Update,o),o?{error:o}:void 0}:void 0}})(r,n),Y=((e,t)=>{const r=E(),{apolloConfig:a}=M();return{fetchDescribeOdigos:e.GET_DESCRIBE_ODIGOS?async()=>B(r,e.GET_DESCRIBE_ODIGOS,void 0,t):void 0,fetchDescribeSource:e.GET_DESCRIBE_SOURCE?async a=>B(r,e.GET_DESCRIBE_SOURCE,a,t):void 0,downloadDiagnose:e.GET_DIAGNOSE?async(n,o)=>{const i=await B(r,e.GET_DIAGNOSE,{input:n,dryRun:o?.dryRun??!1},t),s=i?.data?.stats?.fileCount??0;return!i.error&&s>0&&!o?.dryRun&&await ue(a),i}:void 0}})(r,n),H=((e,t)=>{const r=E(),{notifyError:a,notifyReadonly:n}=$(g.Source);return{fetchTokens:e.GET_TOKENS?async()=>B(r,e.GET_TOKENS,void 0,t):void 0,updateToken:e.UPDATE_TOKEN?async o=>{if(t.isReadonly)return n();const{error:i}=await j(r,e.UPDATE_TOKEN,{token:o},t);return i&&a(C.Update,i),i?{error:i}:void 0}:void 0}})(r,n),W=((e,t)=>{const r=E();return{fetch:async()=>B(r,e.GET_METRICS,void 0,t)}})(r,n),x=((e,t)=>{const r=E();return{fetch:e.GET_SERVICE_MAP?async()=>B(r,e.GET_SERVICE_MAP,void 0,t):void 0}})(r,n),K=((e,t)=>{const r=E();return{fetchSlots:e.GET_PROFILING_SLOTS?async()=>B(r,e.GET_PROFILING_SLOTS,void 0,t):void 0,fetchSourceProfiling:e.GET_SOURCE_PROFILING?async a=>B(r,e.GET_SOURCE_PROFILING,a,t):void 0,enableProfiling:e.ENABLE_SOURCE_PROFILING?async a=>j(r,e.ENABLE_SOURCE_PROFILING,a,t):void 0}})(r,n),V=((e,t)=>{const r=E();return{getGatewayInfo:e.GET_GATEWAY_INFO?async()=>B(r,e.GET_GATEWAY_INFO,void 0,t):void 0,getGatewayPods:e.GET_GATEWAY_PODS?async()=>B(r,e.GET_GATEWAY_PODS,void 0,t):void 0,getNodeCollectorInfo:e.GET_NODE_COLLECTOR_INFO?async()=>B(r,e.GET_NODE_COLLECTOR_INFO,void 0,t):void 0,getNodeCollectorPods:e.GET_NODE_COLLECTOR_PODS?async()=>B(r,e.GET_NODE_COLLECTOR_PODS,void 0,t):void 0,getExtendedPodInfo:e.GET_COLLECTOR_POD_INFO?async(a,n)=>B(r,e.GET_COLLECTOR_POD_INFO,{namespace:a,name:n},t):void 0}})(r,n),q=((e,t)=>{const r=E(),{notifyError:a,notifyReadonly:n}=$(g.SamplingRule),o=async()=>{e.GET_SAMPLING_RULES&&await B(r,e.GET_SAMPLING_RULES,void 0,t)},i=(e,i)=>e?async s=>{if(t.isReadonly)return n();const{error:c}=await j(r,e,s,t);return c?a(i,c):await o(),c?{error:c}:void 0}:void 0,s=(e,i)=>e?async(s,c)=>{if(t.isReadonly)return n();const{error:d}=await j(r,e,{samplingId:c.samplingId,ruleId:s,rule:c.rule},t);return d?a(i,d):await o(),d?{error:d}:void 0}:void 0,c=e=>e?async(i,s)=>{if(t.isReadonly)return n();const{error:c}=await j(r,e,{samplingId:s,ruleId:i},t);return c?a(C.Delete,c):await o(),c?{error:c}:void 0}:void 0;return{fetchAll:e.GET_SAMPLING_RULES?async()=>B(r,e.GET_SAMPLING_RULES,void 0,t):void 0,createNoisy:i(e.CREATE_NOISY_OPERATION_RULE,C.Create),updateNoisy:s(e.UPDATE_NOISY_OPERATION_RULE,C.Update),deleteNoisy:c(e.DELETE_NOISY_OPERATION_RULE),createHighlyRelevant:i(e.CREATE_HIGHLY_RELEVANT_OPERATION_RULE,C.Create),updateHighlyRelevant:s(e.UPDATE_HIGHLY_RELEVANT_OPERATION_RULE,C.Update),deleteHighlyRelevant:c(e.DELETE_HIGHLY_RELEVANT_OPERATION_RULE),createCostReduction:i(e.CREATE_COST_REDUCTION_RULE,C.Create),updateCostReduction:s(e.UPDATE_COST_REDUCTION_RULE,C.Update),deleteCostReduction:c(e.DELETE_COST_REDUCTION_RULE),updateK8sHealthProbesConfig:e.UPDATE_LOCAL_UI_SAMPLING_CONFIG?async i=>{if(t.isReadonly)return n();const{error:s}=await j(r,e.UPDATE_LOCAL_UI_SAMPLING_CONFIG,{config:i},t);return s?a(C.Update,s):await o(),s?{error:s}:void 0}:void 0}})(r,n),Q=((e,t)=>{const r=E();return{getAllClusterSnapshots:e.GET_ALL_CLUSTER_SNAPSHOTS?async()=>B(r,e.GET_ALL_CLUSTER_SNAPSHOTS,void 0,t):void 0,getClusterSnapshot:e.GET_CLUSTER_SNAPSHOT?async a=>B(r,e.GET_CLUSTER_SNAPSHOT,{clusterId:a},t):void 0}})(r,n);return{sourcesApi:p,destinationsApi:S,actionsApi:y,instrumentationRulesApi:A,dataStreamsApi:O,namespacesApi:N,k8sManifestApi:F,configApi:k,describeApi:Y,tokensApi:H,metricsApi:W,serviceMapApi:x,profilingApi:K,collectorsApi:V,samplingApi:q,snapshotsApi:Q,capabilities:e(()=>((e,t)=>{const r=t.platformType===h.Vm,a=t.tier===L.Onprem,n=!r;return{canBulkPersistSources:n&&!!e.PERSIST_SOURCES,canFetchSnapshots:n&&!!e.GET_ALL_CLUSTER_SNAPSHOTS,canRecoverFromRollback:n&&!!e.RECOVER_FROM_ROLLBACK,canRestartWorkloads:n&&!!e.RESTART_WORKLOADS,canFetchPeerSources:!!e.GET_PEER_SOURCES,canFetchSourceLibraries:!!e.GET_SOURCE_LIBRARIES,canFetchK8sManifest:n&&!!e.GET_K8S_MANIFEST,canCreateDestination:n&&!!e.CREATE_DESTINATION,canTestConnection:n&&!!e.TEST_DESTINATION_CONNECTION,canFetchDestinationCategories:!!e.GET_DESTINATION_CATEGORIES,canFetchPotentialDestinations:n&&!!e.GET_POTENTIAL_DESTINATIONS,canCreateAction:n&&!!e.CREATE_ACTION,canCreateInstrumentationRule:n&&!!e.CREATE_INSTRUMENTATION_RULE,canApplyEffectiveConfig:n&&!!e.UPDATE_REMOTE_CONFIG&&!!e.GET_EFFECTIVE_CONFIG,canFetchEffectiveConfig:!!e.GET_EFFECTIVE_CONFIG,canFetchConfigYamls:!!e.GET_CONFIG_YAMLS,canFetchProfiling:n&&!!e.GET_PROFILING_SLOTS,canFetchCollectorInfo:n&&!!e.GET_GATEWAY_INFO,canManageSamplingRules:!!e.GET_SAMPLING_RULES,isEnterprise:a,isVm:r}})(r,n),[r,n]),resetCache:a(async()=>{await i.cache.reset()},[i])}};export{Y as O,H as _,oe as a,ne as b,re as c,_e as d,M as e,q as f,ie as p,j as r,ae as u};
@@ -0,0 +1 @@
1
+ function e(e,t){void 0===t&&(t={});var d=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===d&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}export{e as s};
@@ -1,5 +1,6 @@
1
- import { type CSSProperties } from 'react';
1
+ import React, { type CSSProperties } from 'react';
2
2
  import type { SVG } from '@/types';
3
+ import { type BadgeProps } from '../badge';
3
4
  export declare enum SegmentSize {
4
5
  S = "s",
5
6
  L = "l"
@@ -12,6 +13,7 @@ interface Option<T> {
12
13
  value: T;
13
14
  label?: string;
14
15
  icon?: SVG;
16
+ badge?: BadgeProps;
15
17
  tooltip?: string;
16
18
  selectedBgColor?: CSSProperties['backgroundColor'];
17
19
  selectedBorderColor?: CSSProperties['borderColor'];
@@ -27,5 +29,5 @@ export interface SegmentProps<T = any> {
27
29
  disabled?: boolean;
28
30
  fullWidth?: boolean;
29
31
  }
30
- export declare const Segment: <T>({ "data-id": dataId, size, variant, options, selected, setSelected, disabled, fullWidth }: SegmentProps<T>) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const Segment: <T>({ "data-id": dataId, size, variant, options, selected, setSelected, disabled, fullWidth }: SegmentProps<T>) => React.JSX.Element;
31
33
  export {};
@@ -1 +1 @@
1
- export{eC as Autocomplete,am as Badge,a2 as Button,a3 as ButtonSize,gl as ButtonTab,gm as ButtonTabList,a4 as ButtonVariants,V as Checkbox,gn as CheckboxList,dd as CheckboxSize,b9 as CliCommand,b3 as Condition,aT as Conditions,go as DEFAULT_TIME_UNITS,aS as DataCard,f as Drawer,bN as DropData,bP as DropDataAlignX,bO as DropDataAlignY,aC as DropDown,W as FieldMessage,U as FieldTitle,du as GaugeChart,gp as GaugeChartVariant,gq as Header,gr as HoverActions,aD as IconButton,aE as IconButtonSize,bf as IconGroup,ab as Input,$ as InputList,X as InputTable,d3 as Island,aF as Loader,bS as Modal,gs as Navbar,ac as NoData,n as Note,a8 as Radio,gt as RadioGroup,aa as RadioSize,bb as Search,ay as SectionCard,gu as SectionCardSize,a5 as Segment,ae as SegmentSize,bp as SegmentVariant,dt as StatusCard,d4 as Stepper,br as Table,bs as TableVariant,aZ as Tag,b8 as TagVariants,ag as TextArea,dv as TextCard,dO as TimeInput,Z as Toggle,_ as ToggleLabelAlign,gv as ToggleList,aJ as ToggleSize,gw as ToggleVariant,ad as TruncatableTypography,b as Typography,a1 as TypographyColor,c as TypographySize,aK as TypographyVariants,ap as WarningModal,gx as resolveTypographyColor}from"../chunks/ui-components-DODwSdKu.js";import"react/jsx-runtime";import"styled-components";import"../icons.js";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{eH as Autocomplete,aw as Badge,ad as Button,ae as ButtonSize,gl as ButtonTab,gm as ButtonTabList,af as ButtonVariants,a4 as Checkbox,gn as CheckboxList,di as CheckboxSize,bh as CliCommand,bb as Condition,a$ as Conditions,go as DEFAULT_TIME_UNITS,a_ as DataCard,l as Drawer,bV as DropData,bX as DropDataAlignX,bW as DropDataAlignY,aM as DropDown,a5 as FieldMessage,a3 as FieldTitle,dz as GaugeChart,gp as GaugeChartVariant,gq as Header,gr as HoverActions,aN as IconButton,aO as IconButtonSize,bn as IconGroup,am as Input,aa as InputList,a6 as InputTable,db as Island,aP as Loader,b_ as Modal,gs as Navbar,N as NoData,q as Note,aj as Radio,gt as RadioGroup,al as RadioSize,bj as Search,aI as SectionCard,gu as SectionCardSize,ag as Segment,ao as SegmentSize,bx as SegmentVariant,dy as StatusCard,dc as Stepper,bz as Table,bA as TableVariant,b5 as Tag,bg as TagVariants,aq as TextArea,dA as TextCard,dT as TimeInput,a8 as Toggle,a9 as ToggleLabelAlign,gv as ToggleList,aT as ToggleSize,gw as ToggleVariant,an as TruncatableTypography,f as Typography,ac as TypographyColor,h as TypographySize,aU as TypographyVariants,az as WarningModal,gx as resolveTypographyColor}from"../chunks/ui-components-BKrLf2tx.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"prism-react-renderer";import"../chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";
package/lib/components.js CHANGED
@@ -1 +1 @@
1
- export{aB as CenterThis,eI as Code,i as Divider,g3 as ErrorBoundary,g4 as FadeLoader,R as FlexColumn,F as FlexRow,g5 as IconButton,eJ as IconGroup,g6 as IconWrapped,g7 as ImageControlled,g8 as LoadingText,g9 as ModalBody,ga as NotificationNote,gb as Overlay,aR as Padding,d2 as PageContent,a as Popup,gc as ScrollX,bc as ScrollY,bg as SkeletonLoader,gd as TableContainer,ge as TableTitleWrap,gf as TableWrap,h as Text,gg as ToggleCodeComponent,ak as Tooltip,dw as UpgradeRequiredWrapper,gh as VerticalScroll,gi as getLinksFromText,gj as getStrongsFromText,gk as renderText}from"./chunks/ui-components-DODwSdKu.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{aL as CenterThis,eN as Code,m as Divider,g3 as ErrorBoundary,g4 as FadeLoader,F as FlexColumn,n as FlexRow,g5 as IconButton,I as IconGroup,g6 as IconWrapped,g7 as ImageControlled,g8 as LoadingText,g9 as ModalBody,ga as NotificationNote,gb as Overlay,aZ as Padding,da as PageContent,e as Popup,gc as ScrollX,bk as ScrollY,bo as SkeletonLoader,gd as TableContainer,ge as TableTitleWrap,gf as TableWrap,T as Text,gg as ToggleCodeComponent,au as Tooltip,dB as UpgradeRequiredWrapper,gh as VerticalScroll,gi as getLinksFromText,gj as getStrongsFromText,gk as renderText}from"./chunks/ui-components-BKrLf2tx.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"prism-react-renderer";import"./chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";
@@ -168,6 +168,7 @@ export declare const DISPLAY_TITLES: {
168
168
  PROCESSES: string;
169
169
  PROCESS_FALLBACK_NAME: string;
170
170
  OPEN_IN_POD_TAB: string;
171
+ OPEN_IN_SAMPLING_PAGE: string;
171
172
  ALL_CONTAINERS_HEALTHY: (count: number) => string;
172
173
  ALL_PROCESSES_HEALTHY: (count: number) => string;
173
174
  PID: (pid: string) => string;
@@ -250,6 +251,12 @@ export declare const DISPLAY_TITLES: {
250
251
  DELETE_POD_TO_RESTART: string;
251
252
  RESTART_POD_DESCRIPTION: string;
252
253
  DEBUG: string;
254
+ SAMPLING: string;
255
+ HEAD_SAMPLING: string;
256
+ TAIL_SAMPLING: string;
257
+ NOISY_OPERATIONS: string;
258
+ HIGHLY_RELEVANT_OPERATIONS: string;
259
+ COST_REDUCTION_OPERATIONS: string;
253
260
  };
254
261
  export declare const BUTTON_TEXTS: {
255
262
  GET_STARTED: string;
package/lib/constants.js CHANGED
@@ -1 +1 @@
1
- export{A as ACTION_OPTIONS,fJ as ALL_SOURCES,bu as BTN_CANCEL,dA as BTN_CREATE_FIRST_RULE,bB as BTN_CREATE_RULE,bx as BTN_DELETE_RULE,dQ as BTN_EDIT_AUTO_RULE,bw as BTN_EDIT_RULE,bJ as BTN_SAVE,bv as BTN_SAVE_RULE,aQ as BUTTON_TEXTS,by as CATEGORY_DESCRIPTIONS,es as CATEGORY_LABELS,bC as CATEGORY_TITLES,fK as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fL as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fM as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,aO as DEFAULT_CLUSTER_ID,aN as DEFAULT_CLUSTER_NAME,dn as DEFAULT_DATA_STREAM_NAME,dX as DESC_DURATION,dW as DESC_ERRORS,d_ as DESC_OPERATION,fN as DESC_PERCENTAGE_HIGHLY_RELEVANT,au as DESC_PERCENTAGE_NOISY,et as DESC_RULE_TYPE,eB as DESC_SOURCE_SCOPE,aG as DESTINATION_CATEGORIES,an as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,af as DOCS_BASE_URL,y as DestinationCategoryTypes,bF as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bG as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bD as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bE as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bH as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bI as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bz as EDIT_TITLES,ea as EMPTY_VALUE,a9 as EXTRACTION_FORMAT_COPY,a6 as EXTRACT_ATTRIBUTE_FORM,dy as FILTER_TYPE_ALL,v as FORM_ALERTS,I as INSTRUMENTATION_RULE_OPTIONS,dY as LABEL_CUSTOM_DURATION,az as LABEL_CUSTOM_PERCENTAGE,ax as LABEL_DISABLED,dx as LABEL_DISABLED_RULE,ek as LABEL_DROP_ALL,ar as LABEL_DROP_AT_MOST,aw as LABEL_ENABLED,e3 as LABEL_HTTP_ROUTE,e5 as LABEL_HTTP_ROUTE_PREFIX,e7 as LABEL_KAFKA_TOPIC,el as LABEL_KEEP_ALL,eh as LABEL_KEEP_AT_LEAST,ei as LABEL_KEEP_AT_MOST,eg as LABEL_KEEP_PERCENTAGE,dV as LABEL_KEEP_TRACES_DURATION,dT as LABEL_KEEP_TRACES_ERRORS,e6 as LABEL_METHOD,eo as LABEL_NOTE,dR as LABEL_NO_PREVIEW,e9 as LABEL_OPERATION_TYPE,fO as LABEL_RULE_DISABLED,fP as LABEL_RULE_ENABLED,em as LABEL_RULE_NAME,en as LABEL_RULE_TYPE,ej as LABEL_SAMPLE,e0 as LABEL_SERVER_ADDRESS,e2 as LABEL_TEMPLATED_PATH,e4 as LABEL_TEMPLATED_PATH_PREFIX,bm as LANGUAGE_OPTIONS,d8 as MONITORS_OPTIONS,ev as NOTE_ENTIRE_CLUSTER,eA as NOTE_SOURCE_SCOPE_LOGIC,fQ as OPENTELEMETRY_EBPF_DISTRO_OPTION,ec as OPERATION_ALL,eb as OPERATION_HTTP_CLIENT,e8 as OPERATION_HTTP_SERVER,ed as OPERATION_KAFKA_CONSUMER,ee as OPERATION_KAFKA_PRODUCER,bl as OTEL_DISTRO_NAME_OPTIONS,ef as PERCENTAGE_SECTION_DESCRIPTIONS,eq as PLACEHOLDER_NOTE,e1 as PLACEHOLDER_ROUTE,ep as PLACEHOLDER_RULE_NAME,eD as PLACEHOLDER_SEARCH_SOURCE,d$ as PLACEHOLDER_SERVER_ADDRESS,b5 as PROCESS_ATTRIBUTE_NAMES,a0 as REGEX_TESTER_DRAWER,av as SAMPLING_AUTO_RULE_TITLE,dG as SAMPLING_BTN_CREATE_RULE,dE as SAMPLING_BTN_DOCS,dF as SAMPLING_BTN_REFRESH,at as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,dJ as SAMPLING_DELETE_MODAL_APPROVE,dK as SAMPLING_DELETE_MODAL_CANCEL,dL as SAMPLING_DELETE_MODAL_DESCRIPTION,dM as SAMPLING_DELETE_MODAL_TITLE,bK as SAMPLING_DRAWER_WIDTH,dD as SAMPLING_DUPLICATE_RULE_WARNING,aq as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,cB as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,cC as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,cD as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,cE as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,cF as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,cG as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,cH as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,cI as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,cJ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,cK as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,cM as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,cL as SAMPLING_ONBOARDING_ADVANCED_TITLE,d1 as SAMPLING_ONBOARDING_AMBIENT_LABEL,c7 as SAMPLING_ONBOARDING_BTN_GO_TO,bU as SAMPLING_ONBOARDING_BTN_NEXT,cA as SAMPLING_ONBOARDING_BTN_READ_MORE,ci as SAMPLING_ONBOARDING_BTN_SKIP,cj as SAMPLING_ONBOARDING_BTN_START,cN as SAMPLING_ONBOARDING_COMMON_BANNER,d0 as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,cQ as SAMPLING_ONBOARDING_DROP_DESCRIPTION,cP as SAMPLING_ONBOARDING_DROP_SUBTITLE,cO as SAMPLING_ONBOARDING_DROP_TITLE,cT as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,cS as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,cW as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,cV as SAMPLING_ONBOARDING_KEEP_SUBTITLE,cU as SAMPLING_ONBOARDING_KEEP_TITLE,cX as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,cY as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,cZ as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,c_ as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,c$ as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,b$ as SAMPLING_ONBOARDING_NOISY_BANNER,bX as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,b_ as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,bY as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,bZ as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,bW as SAMPLING_ONBOARDING_NOISY_SUBTITLE,bV as SAMPLING_ONBOARDING_NOISY_TITLE,cR as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,bT as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,cx as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,cy as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,cz as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,cu as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,cs as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,ct as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,cv as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,cw as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,cp as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,cn as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,co as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,cq as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,cr as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,cm as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,cl as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,ck as SAMPLING_ONBOARDING_STRATEGY_TITLE,c4 as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,c5 as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,c6 as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,c3 as SAMPLING_ONBOARDING_SUCCESS_INTRO,c2 as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,c1 as SAMPLING_ONBOARDING_SUCCESS_TITLE,ch as SAMPLING_ONBOARDING_WELCOME_BANNER,ca as SAMPLING_ONBOARDING_WELCOME_INTRO,cb as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,cc as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,cd as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,ce as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,cf as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,cg as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,c9 as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,c8 as SAMPLING_ONBOARDING_WELCOME_TITLE,dH as SAMPLING_PAGE_DESCRIPTION,dI as SAMPLING_PAGE_TITLE,eF as SCOPE_AND_LABEL,eE as SCOPE_GROUP_ANY_OF_HINT,ez as SCOPE_GROUP_LANGUAGES_TITLE,ey as SCOPE_GROUP_NAMESPACES_TITLE,ew as SCOPE_GROUP_SOURCES_TITLE,dU as SECTION_DURATION,dS as SECTION_ERRORS,as as SECTION_KEEP_PERCENTAGE,dZ as SECTION_OPERATION,eu as SECTION_SAMPLING_PREVIEW,eG as SECTION_SOURCE_SCOPE,d7 as STORAGE_KEYS,dz as TITLE_NO_RESULTS,dB as TITLE_NO_RULES,fR as TOKEN_ABOUT_TO_EXPIRE,er as TOOLTIP_NOTE,ex as UNKNOWN_SOURCE_LABEL,bA as UNNAMED_RULE,dC as getNoResultsSubTitle}from"./chunks/ui-components-DODwSdKu.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{A as ACTION_OPTIONS,fJ as ALL_SOURCES,bC as BTN_CANCEL,dF as BTN_CREATE_FIRST_RULE,bJ as BTN_CREATE_RULE,bF as BTN_DELETE_RULE,dV as BTN_EDIT_AUTO_RULE,bE as BTN_EDIT_RULE,bR as BTN_SAVE,bD as BTN_SAVE_RULE,aY as BUTTON_TEXTS,bG as CATEGORY_DESCRIPTIONS,ex as CATEGORY_LABELS,bK as CATEGORY_TITLES,fK as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fL as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fM as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,aW as DEFAULT_CLUSTER_ID,aV as DEFAULT_CLUSTER_NAME,dt as DEFAULT_DATA_STREAM_NAME,e0 as DESC_DURATION,d$ as DESC_ERRORS,e3 as DESC_OPERATION,fN as DESC_PERCENTAGE_HIGHLY_RELEVANT,aE as DESC_PERCENTAGE_NOISY,ey as DESC_RULE_TYPE,eG as DESC_SOURCE_SCOPE,aQ as DESTINATION_CATEGORIES,ax as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,ap as DOCS_BASE_URL,C as DestinationCategoryTypes,bN as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bO as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bL as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bM as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bP as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bQ as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bH as EDIT_TITLES,ef as EMPTY_VALUE,ak as EXTRACTION_FORMAT_COPY,ah as EXTRACT_ATTRIBUTE_FORM,dD as FILTER_TYPE_ALL,y as FORM_ALERTS,M as INSTRUMENTATION_RULE_OPTIONS,e1 as LABEL_CUSTOM_DURATION,aJ as LABEL_CUSTOM_PERCENTAGE,aH as LABEL_DISABLED,dC as LABEL_DISABLED_RULE,ep as LABEL_DROP_ALL,aB as LABEL_DROP_AT_MOST,aG as LABEL_ENABLED,e8 as LABEL_HTTP_ROUTE,ea as LABEL_HTTP_ROUTE_PREFIX,ec as LABEL_KAFKA_TOPIC,eq as LABEL_KEEP_ALL,em as LABEL_KEEP_AT_LEAST,en as LABEL_KEEP_AT_MOST,el as LABEL_KEEP_PERCENTAGE,d_ as LABEL_KEEP_TRACES_DURATION,dY as LABEL_KEEP_TRACES_ERRORS,eb as LABEL_METHOD,et as LABEL_NOTE,dW as LABEL_NO_PREVIEW,ee as LABEL_OPERATION_TYPE,fO as LABEL_RULE_DISABLED,fP as LABEL_RULE_ENABLED,er as LABEL_RULE_NAME,es as LABEL_RULE_TYPE,eo as LABEL_SAMPLE,e5 as LABEL_SERVER_ADDRESS,e7 as LABEL_TEMPLATED_PATH,e9 as LABEL_TEMPLATED_PATH_PREFIX,bu as LANGUAGE_OPTIONS,dg as MONITORS_OPTIONS,eA as NOTE_ENTIRE_CLUSTER,eF as NOTE_SOURCE_SCOPE_LOGIC,fQ as OPENTELEMETRY_EBPF_DISTRO_OPTION,eh as OPERATION_ALL,eg as OPERATION_HTTP_CLIENT,ed as OPERATION_HTTP_SERVER,ei as OPERATION_KAFKA_CONSUMER,ej as OPERATION_KAFKA_PRODUCER,bt as OTEL_DISTRO_NAME_OPTIONS,ek as PERCENTAGE_SECTION_DESCRIPTIONS,ev as PLACEHOLDER_NOTE,e6 as PLACEHOLDER_ROUTE,eu as PLACEHOLDER_RULE_NAME,eI as PLACEHOLDER_SEARCH_SOURCE,e4 as PLACEHOLDER_SERVER_ADDRESS,bd as PROCESS_ATTRIBUTE_NAMES,ab as REGEX_TESTER_DRAWER,aF as SAMPLING_AUTO_RULE_TITLE,dL as SAMPLING_BTN_CREATE_RULE,dJ as SAMPLING_BTN_DOCS,dK as SAMPLING_BTN_REFRESH,aD as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,dO as SAMPLING_DELETE_MODAL_APPROVE,dP as SAMPLING_DELETE_MODAL_CANCEL,dQ as SAMPLING_DELETE_MODAL_DESCRIPTION,dR as SAMPLING_DELETE_MODAL_TITLE,bS as SAMPLING_DRAWER_WIDTH,dI as SAMPLING_DUPLICATE_RULE_WARNING,aA as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,cJ as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,cK as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,cL as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,cM as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,cN as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,cO as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,cP as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,cQ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,cR as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,cS as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,cU as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,cT as SAMPLING_ONBOARDING_ADVANCED_TITLE,d9 as SAMPLING_ONBOARDING_AMBIENT_LABEL,cf as SAMPLING_ONBOARDING_BTN_GO_TO,c0 as SAMPLING_ONBOARDING_BTN_NEXT,cI as SAMPLING_ONBOARDING_BTN_READ_MORE,cq as SAMPLING_ONBOARDING_BTN_SKIP,cr as SAMPLING_ONBOARDING_BTN_START,cV as SAMPLING_ONBOARDING_COMMON_BANNER,d8 as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,cY as SAMPLING_ONBOARDING_DROP_DESCRIPTION,cX as SAMPLING_ONBOARDING_DROP_SUBTITLE,cW as SAMPLING_ONBOARDING_DROP_TITLE,c$ as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,c_ as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,d2 as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,d1 as SAMPLING_ONBOARDING_KEEP_SUBTITLE,d0 as SAMPLING_ONBOARDING_KEEP_TITLE,d3 as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,d4 as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,d5 as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,d6 as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,d7 as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,c7 as SAMPLING_ONBOARDING_NOISY_BANNER,c3 as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,c6 as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,c4 as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,c5 as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,c2 as SAMPLING_ONBOARDING_NOISY_SUBTITLE,c1 as SAMPLING_ONBOARDING_NOISY_TITLE,cZ as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,b$ as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,cF as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,cG as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,cH as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,cC as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,cA as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,cB as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,cD as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,cE as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,cx as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,cv as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,cw as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,cy as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,cz as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,cu as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,ct as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,cs as SAMPLING_ONBOARDING_STRATEGY_TITLE,cc as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,cd as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,ce as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,cb as SAMPLING_ONBOARDING_SUCCESS_INTRO,ca as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,c9 as SAMPLING_ONBOARDING_SUCCESS_TITLE,cp as SAMPLING_ONBOARDING_WELCOME_BANNER,ci as SAMPLING_ONBOARDING_WELCOME_INTRO,cj as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,ck as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,cl as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,cm as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,cn as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,co as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,ch as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,cg as SAMPLING_ONBOARDING_WELCOME_TITLE,dM as SAMPLING_PAGE_DESCRIPTION,dN as SAMPLING_PAGE_TITLE,eK as SCOPE_AND_LABEL,eJ as SCOPE_GROUP_ANY_OF_HINT,eE as SCOPE_GROUP_LANGUAGES_TITLE,eD as SCOPE_GROUP_NAMESPACES_TITLE,eB as SCOPE_GROUP_SOURCES_TITLE,dZ as SECTION_DURATION,dX as SECTION_ERRORS,aC as SECTION_KEEP_PERCENTAGE,e2 as SECTION_OPERATION,ez as SECTION_SAMPLING_PREVIEW,eL as SECTION_SOURCE_SCOPE,df as STORAGE_KEYS,dE as TITLE_NO_RESULTS,dG as TITLE_NO_RULES,fR as TOKEN_ABOUT_TO_EXPIRE,ew as TOOLTIP_NOTE,eC as UNKNOWN_SOURCE_LABEL,bI as UNNAMED_RULE,dH as getNoResultsSubTitle}from"./chunks/ui-components-BKrLf2tx.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"prism-react-renderer";import"./chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";
@@ -1,11 +1,9 @@
1
1
  import { type FC, type Dispatch, type SetStateAction } from 'react';
2
2
  import { type HeaderProps } from '@/components/_v2/drawer/header';
3
- import { type CreateActionFunc } from '@/types';
4
3
  export interface AddActionDrawerProps {
5
4
  onClose: HeaderProps['onClose'];
6
5
  selectedConnectionIds?: string[];
7
6
  setSelectedConnectionIds?: Dispatch<SetStateAction<string[]>>;
8
- createAction: CreateActionFunc;
9
7
  withOverlay?: boolean;
10
8
  }
11
9
  export declare const AddActionDrawer: FC<AddActionDrawerProps>;
@@ -1,6 +1,2 @@
1
1
  import type { WideDrawerProps } from '@/snippets/_v2';
2
- import { AddDestinationFormProps } from '@/containers/_v2/_forms/add-destination-form';
3
- export interface FormColumnProps {
4
- testConnection: AddDestinationFormProps['testConnection'];
5
- }
6
- export declare const useFormColumn: ({ testConnection }: FormColumnProps) => WideDrawerProps["rightColumn"];
2
+ export declare const useFormColumn: () => WideDrawerProps["rightColumn"];
@@ -1,19 +1,13 @@
1
1
  import { type FC, type Dispatch, type SetStateAction } from 'react';
2
2
  import type { HeaderProps } from '@/components/_v2/drawer/header';
3
3
  import { type UnsavedDestination } from '@/contexts';
4
- import type { CreateDestinationFunc, GetDestinationCategoriesFunc, GetPotentialDestinationsFunc, TestConnectionFunc, UpdateDestinationFunc } from '@/types';
5
4
  export interface AddDestinationDrawerProps {
6
5
  onClose?: HeaderProps['onClose'];
7
6
  onBack?: (input: UnsavedDestination[]) => void;
8
7
  onNext?: (input: UnsavedDestination[]) => void;
9
8
  selectedConnectionIds?: string[];
10
9
  setSelectedConnectionIds?: Dispatch<SetStateAction<string[]>>;
11
- getDestinationCategories: GetDestinationCategoriesFunc;
12
- getPotentialDestinations: GetPotentialDestinationsFunc;
13
10
  initialInputs?: UnsavedDestination[] | null;
14
- testConnection: TestConnectionFunc;
15
- createDestination: CreateDestinationFunc;
16
- updateDestination: UpdateDestinationFunc;
17
11
  withOverlay?: boolean;
18
12
  disableAnimation?: boolean;
19
13
  }
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { type Filters } from '../types';
2
3
  import { DestinationCategoryTypes } from '@/constants';
3
4
  import { type DestinationOption } from '@/types';
@@ -6,4 +7,4 @@ export interface FiltersProps {
6
7
  filters: Filters;
7
8
  setFilters: (filters: Filters) => void;
8
9
  }
9
- export declare const ListsFilters: ({ destinationsByCategory, filters, setFilters }: FiltersProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const ListsFilters: ({ destinationsByCategory, filters, setFilters }: FiltersProps) => React.JSX.Element;
@@ -1,11 +1,9 @@
1
1
  import { type FC, type Dispatch, type SetStateAction } from 'react';
2
- import type { CreateInstrumentationRuleFunc } from '@/types';
3
2
  import { type HeaderProps } from '@/components/_v2/drawer/header';
4
3
  export interface AddRuleDrawerProps {
5
4
  onClose: HeaderProps['onClose'];
6
5
  selectedConnectionIds?: string[];
7
6
  setSelectedConnectionIds?: Dispatch<SetStateAction<string[]>>;
8
- createInstrumentationRule: CreateInstrumentationRuleFunc;
9
7
  withOverlay?: boolean;
10
8
  }
11
9
  export declare const AddRuleDrawer: FC<AddRuleDrawerProps>;
@@ -1,15 +1,12 @@
1
1
  import { type FC, type Dispatch, type SetStateAction } from 'react';
2
2
  import { type HeaderProps } from '@/components/_v2/drawer/header';
3
- import { type FetchNamespacesWithWorkloads, type GetAllClusterSnapshots, type PersistSourceInput, type PersistSourcesFunc } from '@/types';
3
+ import { type PersistSourceInput } from '@/types';
4
4
  export interface AddSourceDrawerProps {
5
5
  onClose?: HeaderProps['onClose'];
6
6
  onBack?: (input: PersistSourceInput) => void;
7
7
  onNext?: (input: PersistSourceInput) => void;
8
8
  selectedConnectionIds?: string[];
9
9
  setSelectedConnectionIds?: Dispatch<SetStateAction<string[]>>;
10
- persistSources: PersistSourcesFunc;
11
- getAllClusterSnapshots?: GetAllClusterSnapshots;
12
- fetchNamespacesWithWorkloads?: FetchNamespacesWithWorkloads;
13
10
  withOverlay?: boolean;
14
11
  disableAnimation?: boolean;
15
12
  }
@@ -1,9 +1,6 @@
1
1
  import { type FC } from 'react';
2
- import { type ActionFormData, type ActionType } from '@/types';
3
2
  export interface EditActionDrawerProps {
4
3
  onClose: () => void;
5
4
  actionId: string;
6
- updateAction: (id: string, payload: ActionFormData) => void | Promise<void>;
7
- deleteAction: (id: string, actionType: ActionType) => void | Promise<void>;
8
5
  }
9
6
  export declare const EditActionDrawer: FC<EditActionDrawerProps>;
@@ -1,12 +1,10 @@
1
1
  import { type FC, type Dispatch, type SetStateAction } from 'react';
2
2
  import { type HeaderProps } from '@/components/_v2/drawer/header';
3
- import { type Connection, type GetEffectiveConfigFunc, type ApplyConfigurationsFunc } from '@/types';
3
+ import { type Connection } from '@/types';
4
4
  export interface EditConfigDrawerProps {
5
5
  onClose: HeaderProps['onClose'];
6
6
  connections: Connection[];
7
7
  selectedConnectionIds: string[];
8
8
  setSelectedConnectionIds: Dispatch<SetStateAction<string[]>>;
9
- getEffectiveConfig: GetEffectiveConfigFunc;
10
- onApply: ApplyConfigurationsFunc;
11
9
  }
12
10
  export declare const EditConfigDrawer: FC<EditConfigDrawerProps>;
@@ -1,11 +1,6 @@
1
1
  import { type FC } from 'react';
2
- import { type GetDestinationCategoriesFunc, type TestConnectionFunc, type UpdateDestinationFunc } from '@/types';
3
2
  export interface EditDestinationDrawerProps {
4
3
  onClose: () => void;
5
4
  destinationId: string;
6
- getDestinationCategories: GetDestinationCategoriesFunc;
7
- testConnection: TestConnectionFunc;
8
- updateDestination: UpdateDestinationFunc;
9
- deleteDestination: (id: string) => void | Promise<void>;
10
5
  }
11
6
  export declare const EditDestinationDrawer: FC<EditDestinationDrawerProps>;
@@ -1,9 +1,6 @@
1
1
  import { type FC } from 'react';
2
- import { type InstrumentationRuleFormData } from '@/types';
3
2
  export interface EditRuleDrawerProps {
4
3
  onClose: () => void;
5
4
  ruleId: string;
6
- updateInstrumentationRule: (ruleId: string, payload: InstrumentationRuleFormData) => void | Promise<void>;
7
- deleteInstrumentationRule: (ruleId: string) => void | Promise<void>;
8
5
  }
9
6
  export declare const EditRuleDrawer: FC<EditRuleDrawerProps>;
@@ -1,7 +1,6 @@
1
1
  import { type FC } from 'react';
2
- import { type FetchK8sManifestFn, type Workload } from '@/types';
2
+ import { type Workload } from '@/types';
3
3
  export interface DebugProps {
4
4
  source: Workload;
5
- fetchK8sManifest: FetchK8sManifestFn;
6
5
  }
7
6
  export declare const Debug: FC<DebugProps>;
@@ -1,20 +1,9 @@
1
1
  import { type FC } from 'react';
2
- import { type ProfilingProps } from './profiling';
3
- import { type UpdateSourceFunc, type PersistSourcesFunc, type WorkloadId, type RestartPodFunc, type RestartWorkloadsFunc, type RecoverFromRollbackFunc, type FetchPeerSourcesFunc, type FetchSourceByIdFunc, type EffectiveConfig, type FetchK8sManifestFn } from '@/types';
2
+ import { type SamplingProps } from './sampling';
3
+ import { type WorkloadId } from '@/types';
4
4
  export interface EditSourceDrawerProps {
5
5
  onClose: () => void;
6
- effectiveConfig?: EffectiveConfig;
7
6
  sourceId: WorkloadId;
8
- fetchSourceById: FetchSourceByIdFunc;
9
- persistSources: PersistSourcesFunc;
10
- updateSource: UpdateSourceFunc;
11
- restartWorkloads: RestartWorkloadsFunc;
12
- restartPod: RestartPodFunc;
13
- recoverFromRollback: RecoverFromRollbackFunc;
14
- fetchPeerSources: FetchPeerSourcesFunc;
15
- enableProfiling: ProfilingProps['enableProfiling'];
16
- fetchProfilingSlots: ProfilingProps['fetchProfilingSlots'];
17
- fetchSourceProfiling: ProfilingProps['fetchSourceProfiling'];
18
- fetchK8sManifest: FetchK8sManifestFn;
7
+ onRedirectToSampling: SamplingProps['onRedirectToSampling'];
19
8
  }
20
9
  export declare const EditSourceDrawer: FC<EditSourceDrawerProps>;
@@ -1,7 +1,6 @@
1
1
  import { type FC } from 'react';
2
- import { type SourceFormData, type Workload } from '@/types';
2
+ import { type Workload } from '@/types';
3
3
  export interface ContainersCardProps {
4
4
  source: Workload;
5
- onOverride: (payload: Pick<SourceFormData, 'containerName' | 'language' | 'version' | 'otelDistroName'>) => Promise<void>;
6
5
  }
7
6
  export declare const ContainersCard: FC<ContainersCardProps>;
@@ -1,10 +1,8 @@
1
1
  import { type FC } from 'react';
2
2
  import type { Workload } from '@/types';
3
- import { type ContainersCardProps } from './containers-card';
4
3
  export interface OverviewProps {
5
4
  source: Workload;
6
5
  onClickRollout: () => void;
7
6
  onClickRollback: () => void;
8
- onOverride: ContainersCardProps['onOverride'];
9
7
  }
10
8
  export declare const Overview: FC<OverviewProps>;
@@ -1,11 +1,6 @@
1
1
  import { type FC } from 'react';
2
- import type { PeerSources, Workload } from '@/types';
2
+ import type { Workload } from '@/types';
3
3
  export interface PeersProps {
4
4
  source: Workload;
5
- fetchPeerSources: (serviceName: string) => Promise<{
6
- data?: {
7
- peerSources: PeerSources;
8
- };
9
- }>;
10
5
  }
11
6
  export declare const Peers: FC<PeersProps>;
@@ -1,22 +1,8 @@
1
1
  import { type FC } from 'react';
2
- import { type ProfilingSlots } from './flame-graph-canvas';
3
- import { type WorkloadId, type Workload } from '@/types';
4
- interface SourceProfilingResult {
5
- profileJson: string;
6
- }
7
- interface EnableOrReleaseProfilingResult {
8
- status: string;
9
- sourceKey: string;
10
- maxSlots?: number;
11
- activeSlots?: number;
12
- }
2
+ import { type Workload } from '@/types';
13
3
  export interface ProfilingProps {
14
4
  source: Workload;
15
- enableProfiling: (source: WorkloadId) => Promise<EnableOrReleaseProfilingResult | undefined>;
16
- fetchProfilingSlots: () => Promise<ProfilingSlots | undefined>;
17
- fetchSourceProfiling: (source: WorkloadId) => Promise<SourceProfilingResult | undefined>;
18
5
  /** Forwarded from the inner FlameGraphCanvas; lets the embedding container (e.g. SourceDrawer) react to fullscreen toggles. */
19
6
  onFlameFullscreenChange?: (isFullscreen: boolean) => void;
20
7
  }
21
8
  export declare const Profiling: FC<ProfilingProps>;
22
- export {};
@@ -0,0 +1,8 @@
1
+ import { type FC } from 'react';
2
+ import type { Workload } from '@/types';
3
+ export type OnRedirectToSampling = () => void;
4
+ export interface SamplingProps {
5
+ source: Workload;
6
+ onRedirectToSampling: OnRedirectToSampling;
7
+ }
8
+ export declare const Sampling: FC<SamplingProps>;
@@ -0,0 +1,8 @@
1
+ import { type FC } from 'react';
2
+ import { type ColoredSpanPart } from '@/snippets/_v2';
3
+ export interface SamplingRuleRowProps {
4
+ name?: string | null;
5
+ summary: ColoredSpanPart[];
6
+ onJumpToRule?: () => void;
7
+ }
8
+ export declare const SamplingRuleRow: FC<SamplingRuleRowProps>;
@@ -3,5 +3,6 @@ export declare enum Tabs {
3
3
  Pods = "pods",
4
4
  PeerSources = "peer-sources",
5
5
  Profiling = "profiling",
6
+ Sampling = "sampling",
6
7
  Debug = "debug"
7
8
  }
@@ -1,10 +1,3 @@
1
1
  import { type FC } from 'react';
2
- import { type DescribeOdigos } from '@/types';
3
- export interface DescribeProps {
4
- fetchDescribeOdigos: () => Promise<{
5
- data?: {
6
- describeOdigos: DescribeOdigos;
7
- };
8
- }>;
9
- }
2
+ export type DescribeProps = Record<string, never>;
10
3
  export declare const Describe: FC<DescribeProps>;
@@ -1,6 +1,3 @@
1
1
  import { type FC } from 'react';
2
- import { type DiagnoseFormData } from '@/types';
3
- export interface DiagnoseProps {
4
- downloadDiagnose: (payload: DiagnoseFormData) => Promise<void>;
5
- }
2
+ export type DiagnoseProps = Record<string, never>;
6
3
  export declare const Diagnose: FC<DiagnoseProps>;
@@ -1,10 +1,7 @@
1
1
  import { type FC } from 'react';
2
- import { TokensProps } from './tokens';
3
- import { type DiagnoseProps } from './diagnose';
4
- import { type DescribeProps } from './describe';
5
2
  import { type DrawerProps } from '@/components/_v2';
6
3
  import { type HeaderProps } from '@/components/_v2/drawer/header';
7
- export interface SystemDrawerProps extends Partial<TokensProps>, Partial<DescribeProps>, Partial<DiagnoseProps> {
4
+ export interface SystemDrawerProps {
8
5
  isOpen: DrawerProps['isOpen'];
9
6
  onClose: HeaderProps['onClose'];
10
7
  }
@@ -1,7 +1,6 @@
1
1
  import { type FC } from 'react';
2
- import { type UpdateTokenFunc, type TokenPayload } from '@/types';
2
+ import { type TokenPayload } from '@/types';
3
3
  export interface TokensProps {
4
4
  token: TokenPayload;
5
- updateToken: UpdateTokenFunc;
6
5
  }
7
6
  export declare const Tokens: FC<TokensProps>;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- import { type TestConnectionFunc, type TestConnectionResponse } from '@/types';
2
+ import { type TestConnectionResponse } from '@/types';
3
3
  export interface AddDestinationFormProps {
4
- testConnection: TestConnectionFunc;
5
4
  isEdit?: boolean;
6
5
  }
7
6
  export interface AddDestinationFormRef {
@@ -1,5 +1,4 @@
1
1
  import { type FC } from 'react';
2
- import { type DataStream } from '@/types';
3
2
  export interface AddDataStreamModalProps {
4
3
  isOpen: boolean;
5
4
  onClose: () => void;
@@ -9,7 +8,5 @@ export interface AddDataStreamModalProps {
9
8
  * without sacrificing the slide-out animation.
10
9
  */
11
10
  onCloseEnd?: () => void;
12
- /** When omitted, the modal just adds the new stream to the local store and selects it. */
13
- createDataStream?: (dataStream: DataStream) => void | Promise<void>;
14
11
  }
15
12
  export declare const AddDataStreamModal: FC<AddDataStreamModalProps>;
@@ -1,5 +1,4 @@
1
1
  import { type FC } from 'react';
2
- import { type DataStream } from '@/types';
3
2
  export interface EditDataStreamModalProps {
4
3
  isOpen: boolean;
5
4
  onClose: () => void;
@@ -10,6 +9,5 @@ export interface EditDataStreamModalProps {
10
9
  */
11
10
  onCloseEnd?: () => void;
12
11
  dataStreamName: string;
13
- updateDataStream: (dataStreamName: string, dataStream: DataStream) => void | Promise<void>;
14
12
  }
15
13
  export declare const EditDataStreamModal: FC<EditDataStreamModalProps>;
@@ -1,4 +1,4 @@
1
- import type { CostReductionRuleInput, HighlyRelevantOperationRuleInput, SamplingRulesK8sHealthConfig } from '@/types';
1
+ import type { SamplingRulesK8sHealthConfig } from '@/types';
2
2
  export type SamplingStrategy = 'keep-list' | 'drop-list' | 'advanced';
3
3
  export type AmbientPercentage = '50' | '25' | '10' | '1' | '0.1';
4
4
  export interface SamplingOnboardingState {
@@ -23,7 +23,4 @@ export interface SamplingOnboardingModalProps {
23
23
  * Optional documentation URL that "Read more" buttons in step 3 link to.
24
24
  */
25
25
  docsUrl?: string;
26
- updateK8sHealthProbesConfig: (enabled: boolean, keepPercentage: number) => Promise<void> | void;
27
- createHighlyRelevantOperationRule: (samplingId: string, rule: HighlyRelevantOperationRuleInput) => Promise<void> | void;
28
- createCostReductionRule: (samplingId: string, rule: CostReductionRuleInput) => Promise<void> | void;
29
26
  }
@@ -1,22 +1,11 @@
1
1
  import { type FC } from 'react';
2
- import { type Connection, type GetEffectiveConfigFunc, type ApplyConfigurationsFunc, type GetAllClusterSnapshots, type PersistSourcesFunc, type GetDestinationCategoriesFunc, type GetPotentialDestinationsFunc, type CreateDestinationFunc, type UpdateDestinationFunc, type CreateActionFunc, type CreateInstrumentationRuleFunc, TestConnectionFunc } from '@/types';
2
+ import { type Connection } from '@/types';
3
3
  export interface CentralConnectionsProps {
4
4
  connections?: Connection[];
5
5
  getConnections: () => Promise<Connection[]>;
6
6
  onClickConnection: (connection: Connection) => void;
7
7
  deleteConnection: (id: string) => Promise<void>;
8
8
  configMinSupportedVersion?: number;
9
- getEffectiveConfig?: GetEffectiveConfigFunc;
10
- applyConfigurations?: ApplyConfigurationsFunc;
11
9
  snapshotMinSupportedVersion?: number;
12
- getAllClusterSnapshots?: GetAllClusterSnapshots;
13
- persistSources?: PersistSourcesFunc;
14
- getDestinationCategories?: GetDestinationCategoriesFunc;
15
- getPotentialDestinations?: GetPotentialDestinationsFunc;
16
- testConnection?: TestConnectionFunc;
17
- createDestination?: CreateDestinationFunc;
18
- updateDestination?: UpdateDestinationFunc;
19
- createAction?: CreateActionFunc;
20
- createInstrumentationRule?: CreateInstrumentationRuleFunc;
21
10
  }
22
11
  export declare const CentralConnections: FC<CentralConnectionsProps>;
@@ -1,15 +1,7 @@
1
1
  import { type CSSProperties, type FC } from 'react';
2
- import { type FetchNamespacesWithWorkloads, type PersistSourcesFunc, type GetDestinationCategoriesFunc, type GetPotentialDestinationsFunc, type TestConnectionFunc, type CreateDestinationFunc, type UpdateDestinationFunc } from '@/types';
3
2
  export interface OnboardingProps {
4
3
  pagePaddingXAxis?: CSSProperties['padding'];
5
4
  pagePaddingYAxis?: CSSProperties['padding'];
6
- fetchNamespacesWithWorkloads: FetchNamespacesWithWorkloads;
7
- persistSources: PersistSourcesFunc;
8
- getDestinationCategories: GetDestinationCategoriesFunc;
9
- getPotentialDestinations: GetPotentialDestinationsFunc;
10
- testConnection: TestConnectionFunc;
11
- createDestination: CreateDestinationFunc;
12
- updateDestination: UpdateDestinationFunc;
13
5
  onDone: () => void;
14
6
  }
15
7
  export declare const Onboarding: FC<OnboardingProps>;
@@ -5,7 +5,7 @@ export interface HeadProps {
5
5
  badge: string | number;
6
6
  badgeTooltip?: string;
7
7
  isLoading?: boolean;
8
- refetch: () => void;
8
+ refetch: () => void | Promise<void>;
9
9
  partiallySelected?: boolean;
10
10
  allSelected?: boolean;
11
11
  onSelectAll?: (bool: boolean) => void;
@@ -7,6 +7,7 @@ export interface ColumnProps {
7
7
  metrics?: Metrics;
8
8
  loading: boolean;
9
9
  maxHeight: number;
10
- refetch: () => void;
10
+ /** Refresh the underlying entity list. May return a promise; the Column doesn't await it. */
11
+ refetch: () => void | Promise<void>;
11
12
  }
12
13
  export declare const Column: FC<ColumnProps>;
@@ -1,10 +1,3 @@
1
1
  import { type FC } from 'react';
2
- import { type Metrics } from '@/types';
3
- export interface ColumnsProps {
4
- metrics: Metrics;
5
- refetchSources: () => void;
6
- refetchDestinations: () => void;
7
- refetchActions: () => void;
8
- refetchInstrumentationRules: () => void;
9
- }
2
+ export type ColumnsProps = Record<string, never>;
10
3
  export declare const Columns: FC<ColumnsProps>;