@odigos/ui-kit 0.0.250 → 0.0.252

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 (129) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/docs/api-context.md +687 -0
  3. package/lib/chunks/connections-scope-Cb3gZ8MW.js +1 -0
  4. package/lib/chunks/flow-CAOY59Tu.js +49 -0
  5. package/lib/chunks/{helpers-TT5Y1hFq.js → helpers-CXxRJd5C.js} +1 -1
  6. package/lib/chunks/{index-Cgdz0gvj.js → index-BgflYoEI.js} +9 -9
  7. package/lib/chunks/source-instrument-form-context-Rk2YlyRb.js +1 -0
  8. package/lib/chunks/{ui-components-B2A1-SuV.js → ui-components-Dc15jc-B.js} +226 -225
  9. package/lib/chunks/use-odigos-api-qSWLSy9S.js +5 -0
  10. package/lib/chunks/vendor-BFqT13Me.js +1 -0
  11. package/lib/components/_v2/drawer/index.d.ts +1 -0
  12. package/lib/components/v2.js +1 -1
  13. package/lib/components.js +1 -1
  14. package/lib/constants.js +1 -1
  15. package/lib/containers/_v2/_drawers/add-action-drawer/index.d.ts +0 -2
  16. package/lib/containers/_v2/_drawers/add-destination-drawer/form-column/index.d.ts +1 -5
  17. package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +0 -6
  18. package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +0 -2
  19. package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +1 -4
  20. package/lib/containers/_v2/_drawers/edit-action-drawer/index.d.ts +0 -3
  21. package/lib/containers/_v2/_drawers/edit-config-drawer/index.d.ts +1 -3
  22. package/lib/containers/_v2/_drawers/edit-destination-drawer/index.d.ts +0 -5
  23. package/lib/containers/_v2/_drawers/edit-rule-drawer/index.d.ts +0 -3
  24. package/lib/containers/_v2/_drawers/edit-source-drawer/debug/index.d.ts +1 -2
  25. package/lib/containers/_v2/_drawers/edit-source-drawer/index.d.ts +1 -14
  26. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/index.d.ts +1 -2
  27. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/index.d.ts +0 -2
  28. package/lib/containers/_v2/_drawers/edit-source-drawer/peers/index.d.ts +1 -6
  29. package/lib/containers/_v2/_drawers/edit-source-drawer/profiling/index.d.ts +1 -15
  30. package/lib/containers/_v2/_drawers/system-drawer/describe/index.d.ts +1 -8
  31. package/lib/containers/_v2/_drawers/system-drawer/diagnose/index.d.ts +1 -4
  32. package/lib/containers/_v2/_drawers/system-drawer/index.d.ts +1 -4
  33. package/lib/containers/_v2/_drawers/system-drawer/tokens/index.d.ts +1 -2
  34. package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +1 -2
  35. package/lib/containers/_v2/_modals/add-data-stream-modal/index.d.ts +0 -3
  36. package/lib/containers/_v2/_modals/edit-data-stream-modal/index.d.ts +0 -2
  37. package/lib/containers/_v2/_modals/sampling-onboarding-modal/types.d.ts +1 -4
  38. package/lib/containers/_v2/central-connections/index.d.ts +1 -12
  39. package/lib/containers/_v2/onboarding/index.d.ts +0 -8
  40. package/lib/containers/_v2/overview/columns/column/head.d.ts +1 -1
  41. package/lib/containers/_v2/overview/columns/column/index.d.ts +2 -1
  42. package/lib/containers/_v2/overview/columns/index.d.ts +1 -8
  43. package/lib/containers/_v2/overview/data-stream-select/index.d.ts +1 -10
  44. package/lib/containers/_v2/overview/drawers/index.d.ts +1 -30
  45. package/lib/containers/_v2/overview/index.d.ts +2 -8
  46. package/lib/containers/_v2/overview/multi-source-control/index.d.ts +1 -5
  47. package/lib/containers/_v2/pipeline-collectors/index.d.ts +0 -7
  48. package/lib/containers/_v2/pipeline-collectors/pods-info/index.d.ts +1 -2
  49. package/lib/containers/_v2/pipeline-collectors/pods-info/pod-drawer/index.d.ts +1 -2
  50. package/lib/containers/_v2/sampling-rules/types.d.ts +2 -16
  51. package/lib/containers/_v2/settings/index.d.ts +0 -9
  52. package/lib/containers/service-map/index.d.ts +4 -2
  53. package/lib/containers/v2.js +189 -189
  54. package/lib/containers.js +7 -7
  55. package/lib/contexts/index.d.ts +1 -0
  56. package/lib/contexts/odigos-api/capabilities.d.ts +38 -0
  57. package/lib/contexts/odigos-api/client.d.ts +22 -0
  58. package/lib/contexts/odigos-api/connections-scope.d.ts +18 -0
  59. package/lib/contexts/odigos-api/hooks/use-actions-api.d.ts +26 -0
  60. package/lib/contexts/odigos-api/hooks/use-collectors-api.d.ts +25 -0
  61. package/lib/contexts/odigos-api/hooks/use-config-api.d.ts +24 -0
  62. package/lib/contexts/odigos-api/hooks/use-data-streams-api.d.ts +26 -0
  63. package/lib/contexts/odigos-api/hooks/use-describe-api.d.ts +33 -0
  64. package/lib/contexts/odigos-api/hooks/use-destinations-api.d.ts +50 -0
  65. package/lib/contexts/odigos-api/hooks/use-instrumentation-rules-api.d.ts +35 -0
  66. package/lib/contexts/odigos-api/hooks/use-k8s-manifest-api.d.ts +14 -0
  67. package/lib/contexts/odigos-api/hooks/use-metrics-api.d.ts +13 -0
  68. package/lib/contexts/odigos-api/hooks/use-namespace-api.d.ts +30 -0
  69. package/lib/contexts/odigos-api/hooks/use-profiling-api.d.ts +17 -0
  70. package/lib/contexts/odigos-api/hooks/use-sampling-api.d.ts +39 -0
  71. package/lib/contexts/odigos-api/hooks/use-service-map-api.d.ts +13 -0
  72. package/lib/contexts/odigos-api/hooks/use-snapshots-api.d.ts +13 -0
  73. package/lib/contexts/odigos-api/hooks/use-sources-api.d.ts +75 -0
  74. package/lib/contexts/odigos-api/hooks/use-tokens-api.d.ts +12 -0
  75. package/lib/contexts/odigos-api/index.d.ts +37 -0
  76. package/lib/contexts/odigos-api/internal/notify.d.ts +49 -0
  77. package/lib/contexts/odigos-api/internal/source-payloads.d.ts +53 -0
  78. package/lib/contexts/odigos-api/platform-helpers.d.ts +98 -0
  79. package/lib/contexts/odigos-api/provider.d.ts +28 -0
  80. package/lib/contexts/odigos-api/runner.d.ts +32 -0
  81. package/lib/contexts/odigos-api/types.d.ts +831 -0
  82. package/lib/contexts/odigos-api/use-api-for-connections.d.ts +43 -0
  83. package/lib/contexts/odigos-api/use-api-query.d.ts +130 -0
  84. package/lib/contexts/odigos-api/use-odigos-api.d.ts +103 -0
  85. package/lib/contexts/odigos-api.js +1 -0
  86. package/lib/contexts.js +1 -1
  87. package/lib/functions.js +1 -1
  88. package/lib/hooks.js +1 -1
  89. package/lib/snippets/v2.js +1 -1
  90. package/lib/snippets.js +1 -49
  91. package/lib/store/index.d.ts +0 -1
  92. package/lib/store.js +1 -1
  93. package/lib/theme.js +1 -1
  94. package/lib/types/actions/index.d.ts +0 -5
  95. package/lib/types/common/index.d.ts +29 -4
  96. package/lib/types/destinations/index.d.ts +0 -10
  97. package/lib/types/index.d.ts +0 -1
  98. package/lib/types/instrumentation-rules/index.d.ts +0 -5
  99. package/lib/types/namespaces/index.d.ts +0 -5
  100. package/lib/types/pipeline-collectors/index.d.ts +0 -5
  101. package/lib/types/snapshot/index.d.ts +0 -2
  102. package/lib/types/sources/index.d.ts +0 -30
  103. package/lib/types/tokens/index.d.ts +0 -6
  104. package/lib/types/workload/index.d.ts +0 -7
  105. package/lib/types.js +1 -1
  106. package/lib/visuals.js +1 -1
  107. package/package.json +10 -1
  108. package/lib/chunks/source-instrument-form-context-BGxM25wP.js +0 -1
  109. package/lib/chunks/vendor-IfqYyoNb.js +0 -1
  110. package/lib/mock-data/actions/index.d.ts +0 -2
  111. package/lib/mock-data/config/index.d.ts +0 -3
  112. package/lib/mock-data/connections/index.d.ts +0 -2
  113. package/lib/mock-data/describe/index.d.ts +0 -3
  114. package/lib/mock-data/destinations/index.d.ts +0 -4
  115. package/lib/mock-data/index.d.ts +0 -15
  116. package/lib/mock-data/instrumentation-instances/index.d.ts +0 -2
  117. package/lib/mock-data/instrumentation-rules/index.d.ts +0 -2
  118. package/lib/mock-data/namespaces/index.d.ts +0 -2
  119. package/lib/mock-data/pipeline-collectors/index.d.ts +0 -6
  120. package/lib/mock-data/profiling/index.d.ts +0 -8
  121. package/lib/mock-data/service-map/index.d.ts +0 -4
  122. package/lib/mock-data/snapshot/index.d.ts +0 -5
  123. package/lib/mock-data/sources/index.d.ts +0 -4
  124. package/lib/mock-data/sources/sampling.d.ts +0 -7
  125. package/lib/mock-data/sources/yamls.d.ts +0 -22
  126. package/lib/mock-data/tokens/index.d.ts +0 -2
  127. package/lib/mock-data/traces/index.d.ts +0 -2
  128. package/lib/store/useEntityStore.d.ts +0 -24
  129. 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 f,useQuery as T,gql as _}from"@apollo/client";import{jsx as p}from"react/jsx-runtime";import{onError as y}from"@apollo/client/link/error";import{setContext as S}from"@apollo/client/link/context";import{getMainDefinition as R}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 U,Z as P,_ as G,$ as D,a0 as v,a1 as w,a2 as b,a3 as F}from"./ui-components-Dc15jc-B.js";const k=e=>{if(!e)return!1;const t=e.toLowerCase();return t.includes("authentication required")||t.includes("authentication expired")||t.includes("http 401")},M=r(null),Y=()=>{const e=t(M);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},H=({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=y(({graphQLErrors:t,networkError:r})=>{t&&t.length>0&&t.some(e=>k(e.message))&&e.onAuthError?.(),r&&(401===r.statusCode||k(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=R(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 p(l,{client:o,children:p(M.Provider,{value:E,children:n})})},W=M,x=e=>({error:e,results:[],allSucceeded:!1,anySucceeded:!1,successCount:0,failureCount:0}),K=(e,t)=>{if(e)return"function"==typeof e?e(t):e},V=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)},$=(e,t)=>e.client??t,B=async(e,t,r,a,n)=>{if(!t)return{error:"Query operation not configured"};const o=K(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=$(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?V(e.error):void 0}}catch(e){return{error:V(e)}}},j=async(e,t,r,a)=>{if(!t)return{error:"Mutation operation not configured"};const n=K(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=$(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:V(e)}}},q=async(e,t,r,a,n)=>{if(!t)return x("Multi fetch operation not configured");if(!r.length)return x("No proxy ids supplied for multi fetch");const o=$(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=V(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)},z=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})}}},X=e=>{e({type:I.Warning,title:O.READONLY,message:A.READONLY_WARNING,hideFromHistory:!0})},J=_`
2
+ query OdigosApiNoop {
3
+ __typename
4
+ }
5
+ `,Z=(e,t)=>{if(e)return"function"==typeof e?e(t):e},ee=(e,t)=>e[t],te=(e,t,r)=>{if(void 0===t)return;return e?.transformResult?e.transformResult(t,r):t},re=(e,t,r)=>{if(!e)return;const a=e.transformVariables;return a?a(t,r):t},ae=(t,r,n)=>{const{operations:o,context:i}=Y(),s=ee(o,t),c=e(()=>Z(s?.document,i),[s,i]),d=e(()=>re(s,r,i),[s,r,i]),u=!s||!c,l=!!s?.canRun&&!s.canRun(i),E=n?.skip||u||l,f=T(c??J,{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=te(s,e,i);void 0!==t&&n.onCompleted(t)}:void 0,onError:n?.onError}),_=e(()=>{if(!E)return te(s,f.data,i)},[s,i,f.data,E]),p=a(async()=>{if(u)return{data:void 0};const e=await f.refetch();return{data:te(s,e.data,i)}},[s,i,f,u]);return{data:_,loading:!E&&f.loading,error:f.error,refetch:p,unsupported:u}},ne=(t,r)=>{const{operations:n,context:o}=Y(),i=ee(n,t),s=e(()=>Z(i?.document,o),[i,o]),c=!i||!s,[d,u]=f(s??J,{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=re(i,e,o),r=await d({variables:t});return r.error?{error:r.error}:{data:te(i,r.data,o)}},[i,o,d,c]),data:e(()=>te(i,u.data,o),[i,o,u.data]),loading:u.loading,error:u.error,called:u.called,unsupported:c}},oe=(t,r)=>{const{operations:o,context:i}=Y(),s=E(),c=ee(o,t),d=e(()=>Z(c?.document,i),[c,i]),u=!c||!d,[l,f]=n({loading:!1,called:!1}),T=a(()=>f({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=re(c,e,i),a=c?.client??s;f(e=>({...e,loading:!0,called:!0}));try{const e=await a.mutate({mutation:d,variables:t}),n=te(c,e.data,i);if(f({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 f({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:T}]},ie=(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}},se=(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}},ce={filter:{markedForInstrumentation:!0}},de=[],ue=[],le=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){}},Ee=[],fe=[],Te=[],_e=(e,t)=>({...e,fields:e.fields.filter(({value:e})=>void 0!==e),currentStreamName:t}),pe=t=>{const{operations:r,context:n}=Y(),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"),f=!!s&&s.includes("namespaces"),T=!!s&&s.includes("dataStreams"),_=!!s&&s.includes("destinationCategories"),p=!!s&&s.includes("potentialDestinations"),y=((e,t,r)=>{const n=E(),{notifyError:o,notifySuccess:i,notifyPending:s,notifyReadonly:c}=z(g.Source),{selectedStreamName:d}=U(),{setProgress:u,resetProgress:l}=P(),{setConfiguredSources:f,setConfiguredFutureApps:T}=G(),_=ae("GET_WORKLOADS",ce,{fetchPolicy:"cache-first",skip:!r?.subscribe}),p=_.data?.workloads??de,y=(e,t)=>{const{progress:r}=P.getState();e>0&&u(D.Instrumenting,{total:(r[D.Instrumenting]?.total||0)+e,current:r[D.Instrumenting]?.current||0}),t>0&&u(D.Uninstrumenting,{total:(r[D.Uninstrumenting]?.total||0)+t,current:r[D.Uninstrumenting]?.current||0})},S=a(async()=>{const{error:r}=await B(n,e.GET_WORKLOADS,ce,t);r&&o(C.Read,r)},[n,e.GET_WORKLOADS,t,o]);return{items:p,loading:_.loading,fetchAll:S,fetchByTargets:async(r,a)=>{const i=!!a?.slim,s=r.map(e=>v(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}=ie(r,p,d,y),{payload:E,isEmpty:_}=se(a,d);let S=!1;u||(S=!0,s("Persisting sources...")),_||S||s("Persisting namespaces...");const{error:R}=await j(n,e.PERSIST_SOURCES,i,t);if(R&&(l(D.Instrumenting),l(D.Uninstrumenting),o(C.Update,R)),e.PERSIST_NAMESPACES){const{error:r}=await j(n,e.PERSIST_NAMESPACES,E,t);r&&o(C.Update,r)}f({}),T({})},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}=z(g.Destination),{selectedStreamName:s}=U(),c=ae("GET_DESTINATIONS",void 0,{fetchPolicy:"cache-first",skip:!r?.subscribe}),d=ae("GET_DESTINATION_CATEGORIES",void 0,{skip:!r?.subscribeCategories}),u=ae("GET_POTENTIAL_DESTINATIONS",void 0,{skip:!r?.subscribePotential}),l=c.data?.computePlatform?.destinations??c.data?.destinations??Te,f=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:f,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:_e(r,s)},t);return n},create:async r=>{if(t.isReadonly)return i();const{error:c}=await j(a,e.CREATE_DESTINATION,{destination:_e(r,s)},t);c?n(C.Create,c):(o(C.Create,`Successfully created "${r.type}" destination`),await f())},update:async(r,c)=>{if(t.isReadonly)return i();const{data:d,error:u}=await j(a,e.UPDATE_DESTINATION,{id:r,destination:_e(c,s)},t);u?n(C.Update,u,r):d?.updateDestination&&(o(C.Update,`Successfully updated "${c.type}" destination`,r),await f())},remove:async r=>{if(t.isReadonly)return i();const c=l.find(e=>w(e)===r)?.destinationType?.type,{error:d}=await j(a,e.DELETE_DESTINATION,{id:r,currentStreamName:s},t);d?n(C.Delete,d,r):(o(C.Delete,`Successfully deleted "${c??r}" destination`,r),await f())}}})(r,n,{subscribe:d,subscribeCategories:_,subscribePotential:p}),R=((e,t,r)=>{const a=E(),{notifyError:n,notifySuccess:o,notifyReadonly:i}=z(g.Action),s=ae("GET_ACTIONS",void 0,{fetchPolicy:"cache-first",skip:!r?.subscribe}),c=s.data?.computePlatform?.actions??s.data?.actions??ue,d=async()=>{const{error:r}=await B(a,e.GET_ACTIONS,void 0,t);r&&n(C.Read,r)};return{items:c,loading:s.loading,fetchAll:d,create:async r=>{if(t.isReadonly)return i();if(!e.CREATE_ACTION)return;const{error:s}=await j(a,e.CREATE_ACTION,{action:r},t);s?n(C.Create,s):(o(C.Create,`Successfully created "${r.type}" action`),await d())},update:async(r,s)=>{if(t.isReadonly)return i();if(!e.UPDATE_ACTION)return;const{error:c}=await j(a,e.UPDATE_ACTION,{id:r,action:s},t);c?n(C.Update,c,r):(o(C.Update,`Successfully updated "${s.type}" action`,r),await d())},remove:async(r,s)=>{if(t.isReadonly)return i();if(!e.DELETE_ACTION)return;const{error:c}=await j(a,e.DELETE_ACTION,{id:r,actionType:s},t);c?n(C.Delete,c,r):(o(C.Delete,`Successfully deleted "${s}" action`,r),await d())}}})(r,n,{subscribe:u}),A=((t,r,a)=>{const n=E(),{notifyError:o,notifySuccess:i,notifyReadonly:s}=z(g.InstrumentationRule),c=ae("GET_INSTRUMENTATION_RULES",void 0,{fetchPolicy:"cache-first",skip:!a?.subscribe}),d=e(()=>(c.data?.computePlatform?.instrumentationRules??c.data?.instrumentationRules??[]).map(b),[c.data]),u=async()=>{const{error:e}=await B(n,t.GET_INSTRUMENTATION_RULES,void 0,r);e&&o(C.Read,e)};return{items:d,loading:c.loading,fetchAll:u,create:async(e,a)=>{if(r.isReadonly)return s();if(!t.CREATE_INSTRUMENTATION_RULE)return;const{error:c}=await j(n,t.CREATE_INSTRUMENTATION_RULE,{instrumentationRule:F(e)},r);c?o(C.Create,c):(i(C.Create,`Successfully created${a?` "${a}"`:""} rule`),await u())},update:async(e,a,c)=>{if(r.isReadonly)return s();if(!t.UPDATE_INSTRUMENTATION_RULE)return;const{error:d}=await j(n,t.UPDATE_INSTRUMENTATION_RULE,{ruleId:e,instrumentationRule:F(a)},r);d?o(C.Update,d,e):(i(C.Update,`Successfully updated${c?` "${c}"`:""} rule`,e),await u())},remove:async(e,a)=>{if(r.isReadonly)return s();if(!t.DELETE_INSTRUMENTATION_RULE)return;const{error:c}=await j(n,t.DELETE_INSTRUMENTATION_RULE,{ruleId:e},r);c?o(C.Delete,c,e):(i(C.Delete,`Successfully deleted${a?` "${a}"`:""} rule`,e),await u())}}})(r,n,{subscribe:l}),O=((e,t,r)=>{const a=E(),{addNotification:n}=m(),{setDataStreams:i}=U(),s=!!r?.subscribe,c=(e,t)=>n({type:I.Error,title:e,message:t}),d=ae("GET_DATA_STREAMS",void 0,{fetchPolicy:"cache-first",skip:!s}),u=d.data?.computePlatform?.dataStreams??d.data?.dataStreams??fe;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)}},f=e.CREATE_DATA_STREAM?async r=>{if(t.isReadonly)return X(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:f,update:async(r,o)=>{if(t.isReadonly)return X(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 X(n);const{error:o}=await j(a,e.DELETE_DATA_STREAM,{id:r},t);o?c(C.Delete,o):await l()}}})(r,n,{subscribe:T}),N=((e,t,r)=>{const a=E(),{notifyError:n,notifyReadonly:o}=z(g.Namespace),i=ae("GET_NAMESPACES_WITH_WORKLOADS",void 0,{fetchPolicy:"cache-first",skip:!r?.subscribe});return{items:i.data?.namespaces??Ee,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:f}),k=((e,t)=>{const r=E(),{notifyError:a}=z(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),M=((e,t)=>{const r=E(),{notifyError:a,notifySuccess:n,notifyReadonly:o}=z(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(n,i)=>{if(t.isReadonly)return o();const{error:s}=await j(r,e.UPDATE_REMOTE_CONFIG,{formData:n,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 i=>{if(t.isReadonly)return o();const{error:s}=await j(r,e.UPDATE_LOCAL_UI_CONFIG,{config:i},t);return s?a(C.Update,s):n(C.Update,"Local UI configuration updated successfully"),s?{error:s}:void 0}:void 0,resetLocalUiConfigToDefaults:e.RESET_LOCAL_UI_CONFIG_TO_FACTORY_DEFAULTS?async()=>{if(t.isReadonly)return o();const{error:i}=await j(r,e.RESET_LOCAL_UI_CONFIG_TO_FACTORY_DEFAULTS,void 0,t);return i?a(C.Update,i):n(C.Update,"Local UI configuration reset to factory defaults"),i?{error:i}:void 0}:void 0}})(r,n),H=((e,t)=>{const r=E(),{apolloConfig:a}=Y();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 le(a),i}:void 0}})(r,n),W=((e,t)=>{const r=E(),{notifyError:a,notifyReadonly:n}=z(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),x=((e,t)=>{const r=E();return{fetch:async()=>B(r,e.GET_METRICS,void 0,t)}})(r,n),K=((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),V=((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),$=((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,notifySuccess:n,notifyReadonly:o}=z(g.SamplingRule),i=async()=>{e.GET_SAMPLING_RULES&&await B(r,e.GET_SAMPLING_RULES,void 0,t)},s=(e,s)=>e?async c=>{if(t.isReadonly)return o();const{error:d}=await j(r,e,c,t);return d?a(s,d):(n(C.Create,"Successfully created sampling rule"),await i()),d?{error:d}:void 0}:void 0,c=(e,s)=>e?async(c,d)=>{if(t.isReadonly)return o();const{error:u}=await j(r,e,{samplingId:d.samplingId,ruleId:c,rule:d.rule},t);return u?a(s,u):(n(C.Update,"Successfully updated sampling rule"),await i()),u?{error:u}:void 0}:void 0,d=e=>e?async(s,c)=>{if(t.isReadonly)return o();const{error:d}=await j(r,e,{samplingId:c,ruleId:s},t);return d?a(C.Delete,d):(n(C.Delete,"Successfully deleted sampling rule"),await i()),d?{error:d}:void 0}:void 0;return{fetchAll:e.GET_SAMPLING_RULES?async()=>B(r,e.GET_SAMPLING_RULES,void 0,t):void 0,createNoisy:s(e.CREATE_NOISY_OPERATION_RULE,C.Create),updateNoisy:c(e.UPDATE_NOISY_OPERATION_RULE,C.Update),deleteNoisy:d(e.DELETE_NOISY_OPERATION_RULE),createHighlyRelevant:s(e.CREATE_HIGHLY_RELEVANT_OPERATION_RULE,C.Create),updateHighlyRelevant:c(e.UPDATE_HIGHLY_RELEVANT_OPERATION_RULE,C.Update),deleteHighlyRelevant:d(e.DELETE_HIGHLY_RELEVANT_OPERATION_RULE),createCostReduction:s(e.CREATE_COST_REDUCTION_RULE,C.Create),updateCostReduction:c(e.UPDATE_COST_REDUCTION_RULE,C.Update),deleteCostReduction:d(e.DELETE_COST_REDUCTION_RULE),updateK8sHealthProbesConfig:e.UPDATE_LOCAL_UI_SAMPLING_CONFIG?async n=>{if(t.isReadonly)return o();const{error:s}=await j(r,e.UPDATE_LOCAL_UI_SAMPLING_CONFIG,{config:n},t);return s?a(C.Update,s):await i(),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:y,destinationsApi:S,actionsApi:R,instrumentationRulesApi:A,dataStreamsApi:O,namespacesApi:N,k8sManifestApi:k,configApi:M,describeApi:H,tokensApi:W,metricsApi:x,serviceMapApi:K,profilingApi:V,collectorsApi:$,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{H as O,W as _,ie as a,oe as b,ae as c,pe as d,Y as e,q as f,se as p,j as r,ne 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};
@@ -7,6 +7,7 @@ export interface DrawerProps {
7
7
  disableAnimation?: boolean;
8
8
  position?: 'left' | 'right';
9
9
  width?: CSSProperties['width'];
10
+ minWidth?: CSSProperties['minWidth'];
10
11
  header?: HeaderProps;
11
12
  footer?: FooterProps;
12
13
  children: ReactNode;
@@ -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-B2A1-SuV.js";import"react/jsx-runtime";import"styled-components";import"../icons.js";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-IfqYyoNb.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{eH as Autocomplete,ax as Badge,ae as Button,af as ButtonSize,gl as ButtonTab,gm as ButtonTabList,ag as ButtonVariants,a5 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,aN as DropDown,a6 as FieldMessage,a4 as FieldTitle,dz as GaugeChart,gp as GaugeChartVariant,gq as Header,gr as HoverActions,aO as IconButton,aP as IconButtonSize,bn as IconGroup,an as Input,ab as InputList,a7 as InputTable,db as Island,aQ as Loader,b_ as Modal,gs as Navbar,N as NoData,q as Note,ak as Radio,gt as RadioGroup,am as RadioSize,bj as Search,aJ as SectionCard,gu as SectionCardSize,ah as Segment,ap as SegmentSize,bx as SegmentVariant,dy as StatusCard,dc as Stepper,bz as Table,bA as TableVariant,b5 as Tag,bg as TagVariants,ar as TextArea,dA as TextCard,dT as TimeInput,a9 as Toggle,aa as ToggleLabelAlign,gv as ToggleList,aU as ToggleSize,gw as ToggleVariant,ao as TruncatableTypography,f as Typography,ad as TypographyColor,h as TypographySize,aV as TypographyVariants,aA as WarningModal,gx as resolveTypographyColor}from"../chunks/ui-components-Dc15jc-B.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-B2A1-SuV.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-IfqYyoNb.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{aM 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,av as Tooltip,dB as UpgradeRequiredWrapper,gh as VerticalScroll,gi as getLinksFromText,gj as getStrongsFromText,gk as renderText}from"./chunks/ui-components-Dc15jc-B.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/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-B2A1-SuV.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-IfqYyoNb.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,aX as DEFAULT_CLUSTER_ID,aW 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,aF as DESC_PERCENTAGE_NOISY,ey as DESC_RULE_TYPE,eG as DESC_SOURCE_SCOPE,aR as DESTINATION_CATEGORIES,ay as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,aq 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,al as EXTRACTION_FORMAT_COPY,ai as EXTRACT_ATTRIBUTE_FORM,dD as FILTER_TYPE_ALL,y as FORM_ALERTS,M as INSTRUMENTATION_RULE_OPTIONS,e1 as LABEL_CUSTOM_DURATION,aK as LABEL_CUSTOM_PERCENTAGE,aI as LABEL_DISABLED,dC as LABEL_DISABLED_RULE,ep as LABEL_DROP_ALL,aC as LABEL_DROP_AT_MOST,aH 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,ac as REGEX_TESTER_DRAWER,aG as SAMPLING_AUTO_RULE_TITLE,dL as SAMPLING_BTN_CREATE_RULE,dJ as SAMPLING_BTN_DOCS,dK as SAMPLING_BTN_REFRESH,aE 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,aB 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,aD 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-Dc15jc-B.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,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,22 +1,9 @@
1
1
  import { type FC } from 'react';
2
2
  import { type SamplingProps } from './sampling';
3
- import { type ProfilingProps } from './profiling';
4
- import { type UpdateSourceFunc, type PersistSourcesFunc, type WorkloadId, type RestartPodFunc, type RestartWorkloadsFunc, type RecoverFromRollbackFunc, type FetchPeerSourcesFunc, type FetchSourceByIdFunc, type EffectiveConfig, type FetchK8sManifestFn } from '@/types';
3
+ import { type WorkloadId } from '@/types';
5
4
  export interface EditSourceDrawerProps {
6
5
  onClose: () => void;
7
- effectiveConfig?: EffectiveConfig;
8
6
  sourceId: WorkloadId;
9
- fetchSourceById: FetchSourceByIdFunc;
10
- persistSources: PersistSourcesFunc;
11
- updateSource: UpdateSourceFunc;
12
- restartWorkloads: RestartWorkloadsFunc;
13
- restartPod: RestartPodFunc;
14
- recoverFromRollback: RecoverFromRollbackFunc;
15
- fetchPeerSources: FetchPeerSourcesFunc;
16
- enableProfiling: ProfilingProps['enableProfiling'];
17
- fetchProfilingSlots: ProfilingProps['fetchProfilingSlots'];
18
- fetchSourceProfiling: ProfilingProps['fetchSourceProfiling'];
19
7
  onRedirectToSampling: SamplingProps['onRedirectToSampling'];
20
- fetchK8sManifest: FetchK8sManifestFn;
21
8
  }
22
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 {};
@@ -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>;
@@ -1,12 +1,3 @@
1
1
  import { type FC } from 'react';
2
- import { type DataStream } from '@/types';
3
- export interface DataStreamSelectProps {
4
- updateDataStream: (dataStreamName: string, dataStream: DataStream) => void | Promise<void>;
5
- deleteDataStream: (dataStreamName: string) => void | Promise<void>;
6
- /**
7
- * Optional. When omitted, "create" just appends to the local data-streams store
8
- * and selects the new stream. Provide this when there's a remote create mutation.
9
- */
10
- createDataStream?: (dataStream: DataStream) => void | Promise<void>;
11
- }
2
+ export type DataStreamSelectProps = Record<string, never>;
12
3
  export declare const DataStreamSelect: FC<DataStreamSelectProps>;
@@ -1,35 +1,6 @@
1
1
  import { type FC } from 'react';
2
- import { type EditSourceDrawerProps } from '../../_drawers';
3
- import { type CreateActionFunc, type CreateDestinationFunc, type CreateInstrumentationRuleFunc, type DeleteActionFunc, type DeleteDestinationFunc, type DeleteInstrumentationRuleFunc, type EffectiveConfig, type EnableProfilingFunc, type FetchNamespacesWithWorkloads, type FetchPeerSourcesFunc, type FetchProfilingSlotsFunc, type FetchSourceByIdFunc, type FetchSourceProfilingFunc, type GetDestinationCategoriesFunc, type GetPotentialDestinationsFunc, type PersistSourcesFunc, type RecoverFromRollbackFunc, type RestartPodFunc, type RestartWorkloadsFunc, type TestConnectionFunc, type UpdateActionFunc, type UpdateDestinationFunc, type UpdateInstrumentationRuleFunc, type UpdateSourceFunc, type WorkloadId, type FetchK8sManifestFn } from '@/types';
2
+ import { EditSourceDrawerProps } from '../../_drawers';
4
3
  export interface DrawersProps {
5
- effectiveConfig?: EffectiveConfig;
6
- fetchNamespacesWithWorkloads: FetchNamespacesWithWorkloads;
7
- persistSources: PersistSourcesFunc;
8
- restartWorkloads: RestartWorkloadsFunc;
9
- restartPod: RestartPodFunc;
10
- recoverFromRollback: RecoverFromRollbackFunc;
11
- updateSource: UpdateSourceFunc;
12
- fetchSourceById: FetchSourceByIdFunc;
13
- fetchPeerSources: FetchPeerSourcesFunc;
14
- enableProfiling: EnableProfilingFunc;
15
- fetchProfilingSlots: FetchProfilingSlotsFunc;
16
- fetchSourceProfiling: FetchSourceProfilingFunc;
17
- fetchK8sManifest: FetchK8sManifestFn;
18
4
  onRedirectToSampling: EditSourceDrawerProps['onRedirectToSampling'];
19
- workloads?: {
20
- id: WorkloadId;
21
- }[];
22
- getDestinationCategories: GetDestinationCategoriesFunc;
23
- getPotentialDestinations: GetPotentialDestinationsFunc;
24
- testConnection: TestConnectionFunc;
25
- createDestination: CreateDestinationFunc;
26
- updateDestination: UpdateDestinationFunc;
27
- deleteDestination: DeleteDestinationFunc;
28
- createInstrumentationRule: CreateInstrumentationRuleFunc;
29
- updateInstrumentationRule: UpdateInstrumentationRuleFunc;
30
- deleteInstrumentationRule: DeleteInstrumentationRuleFunc;
31
- createAction: CreateActionFunc;
32
- updateAction: UpdateActionFunc;
33
- deleteAction: DeleteActionFunc;
34
5
  }
35
6
  export declare const Drawers: FC<DrawersProps>;
@@ -1,12 +1,6 @@
1
1
  import { type FC } from 'react';
2
- import { type ColumnsProps } from './columns';
3
2
  import { type DrawersProps } from './drawers';
4
- import { type DataStreamSelectProps } from './data-stream-select';
5
- export interface OverviewProps extends DrawersProps, DataStreamSelectProps {
6
- metrics: ColumnsProps['metrics'];
7
- refetchSources: ColumnsProps['refetchSources'];
8
- refetchDestinations: ColumnsProps['refetchDestinations'];
9
- refetchActions: ColumnsProps['refetchActions'];
10
- refetchInstrumentationRules: ColumnsProps['refetchInstrumentationRules'];
3
+ export interface OverviewProps {
4
+ onRedirectToSampling: DrawersProps['onRedirectToSampling'];
11
5
  }
12
6
  export declare const Overview: FC<OverviewProps>;